public interface ModuleAPI
ModuleProviders.
When trying to create a module instance for an ItemStack,
all registered providers will be queried, until one returns something not null.
| 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.
|
void addProvider(ModuleProvider provider)
provider - the provider to register.@Nullable ModuleProvider getProviderFor(net.minecraft.item.ItemStack stack, Casing casing, Face face)
stack - 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.