Package net.fabricmc.api
Annotation Type EnvironmentInterface
@Retention(CLASS)
@Repeatable(EnvironmentInterfaces.class)
@Target(TYPE)
@Documented
public @interface EnvironmentInterface
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:
-
Required Element Summary