Quilt Loader 1
Loading...
Searching...
No Matches
net.fabricmc.api.EnvironmentInterface Interface Reference

Applied to declare that a class implements an interface only in the specified environment. More...

Public Member Functions

EnvType value ()
 Returns the environment type that the specific interface is only implemented in.
Class<?> itf ()
 Returns the interface class.

Detailed Description

Applied to declare that a class implements an interface only in the specified environment.

Use with caution, as Fabric-loader will remove the interface from implements declaration of the class in a mismatched environment!

Implemented methods are not removed. To remove implemented methods, use Environment.

See also
Environment
Deprecated
Please use one of quilt's annotations: either ClientOnly or DedicatedServerOnly. Those annotations can be directly applied to the implemented interface.

The documentation for this interface was generated from the following file:
  • src/fabric/api/java/net/fabricmc/api/EnvironmentInterface.java