public interface ModuleProvider
| Modifier and Type | Method and Description |
|---|---|
Module |
createModule(net.minecraft.item.ItemStack stack,
Casing casing,
Face face)
Creates a new module instance for the specified item stack.
|
boolean |
worksWith(net.minecraft.item.ItemStack stack,
Casing casing,
Face face)
Checks whether the provider supports the specified stack.
|
boolean worksWith(net.minecraft.item.ItemStack stack,
Casing casing,
Face face)
stack - the stack to check for.casing - the casing the module would be installed in.face - the face the module would be installed on.@Nullable Module createModule(net.minecraft.item.ItemStack stack, Casing casing, Face face)
Returns null if the specified item type is not supported.
stack - the stack to get the module instance for.casing - the casing the module will be installed in.face - the face the module will be installed on.