| Modifier and Type | Field and Description |
|---|---|
static SerialAPIImpl |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
addProvider(SerialInterfaceProvider provider)
Register the specified provider.
|
SerialInterfaceProvider |
getProviderFor(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.util.EnumFacing side)
Find the first provider supporting the specified block position.
|
ContentProvider |
getSerialProtocolContentProvider() |
public static final SerialAPIImpl INSTANCE
public ContentProvider getSerialProtocolContentProvider()
public void addProvider(SerialInterfaceProvider provider)
SerialAPIaddProvider in interface SerialAPIprovider - the provider to register.public SerialInterfaceProvider getProviderFor(net.minecraft.world.World world, int x, int y, int z, net.minecraft.util.EnumFacing side)
SerialAPIgetProviderFor in interface SerialAPIworld - the world the block to get the provider for lives in.x - the x position in question.y - the y position in question.z - the z position in question.side - the side of the block the provider should work for.