| Constructor and Description |
|---|
ModuleAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProvider(ModuleProvider provider)
Register the specified provider.
|
ModuleProvider |
getProviderFor(net.minecraft.item.ItemStack stack,
Casing casing,
Face face)
Find the first provider supporting the specified item stack.
|
public void addProvider(ModuleProvider provider)
ModuleAPIaddProvider in interface ModuleAPIprovider - the provider to register.@Nullable public ModuleProvider getProviderFor(net.minecraft.item.ItemStack stack, Casing casing, Face face)
ModuleAPIgetProviderFor in interface ModuleAPIstack - the item stack to find a provider for.casing - the casing the module would be installed in.face - the face the module would be installed on.