|
Quilt Loader 1
|
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. | |
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.
ClientOnly or DedicatedServerOnly. Those annotations can be directly applied to the implemented interface.