public interface EnvironmentProvider
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getEnvironment(net.minecraft.item.ItemStack stack)
Get the environment provided by the specified stack.
|
java.lang.Class<?> getEnvironment(net.minecraft.item.ItemStack stack)
SimpleComponent
s this allows returning
an arbitrary class type instead of an environment type, since the
Environment
interface will be injected
by the class transformer at runtime.
For items this will be the type of the environment returned by the
item driver's Item.createEnvironment(net.minecraft.item.ItemStack, li.cil.oc.api.network.EnvironmentHost)
method.stack
- the stack to get the environment type for.