public final class ModuleProviderSerialPort extends java.lang.Object implements ModuleProvider
| Constructor and Description |
|---|
ModuleProviderSerialPort() |
| 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.
|
public boolean worksWith(net.minecraft.item.ItemStack stack,
Casing casing,
Face face)
ModuleProviderworksWith in interface ModuleProviderstack - the stack to check for.casing - the casing the module would be installed in.face - the face the module would be installed on.public Module createModule(net.minecraft.item.ItemStack stack, Casing casing, Face face)
ModuleProviderReturns null if the specified item type is not supported.
createModule in interface ModuleProviderstack - 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.