public interface IPositionProvider
| Modifier and Type | Method and Description |
|---|---|
default boolean |
disableDepthTest()
Whether or not the rendered positions should be visible through the world.
|
default java.util.List<net.minecraft.util.math.BlockPos> |
getRawStoredPositions(net.minecraft.world.World world,
net.minecraft.item.ItemStack stack)
Gets the raw stored positions in this provider.
|
default int |
getRenderColor(int index)
Color that should be used to highlight the stored block positions if & when they are rendered on-screen.
|
java.util.List<net.minecraft.util.math.BlockPos> |
getStoredPositions(net.minecraft.world.World world,
net.minecraft.item.ItemStack stack)
Get block position data from the given ItemStack.
|
default void |
syncVariables(net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.item.ItemStack stack)
If the item stores any global variables which the client needs to know about (e.g.
|
@Nonnull
java.util.List<net.minecraft.util.math.BlockPos> getStoredPositions(net.minecraft.world.World world,
@Nonnull
net.minecraft.item.ItemStack stack)
world - the world (if a server world, global variables may be used)stack - the itemstackdefault int getRenderColor(int index)
index - the index in the list returned by getStoredPositions()default boolean disableDepthTest()
default java.util.List<net.minecraft.util.math.BlockPos> getRawStoredPositions(net.minecraft.world.World world,
net.minecraft.item.ItemStack stack)
world - the world (if a server world, global variables may be used)stack - the itemstackdefault void syncVariables(net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.item.ItemStack stack)
PneumaticRegistry.IPneumaticCraftInterface.syncGlobalVariable(ServerPlayerEntity, String)}
for a convenience method to send the necessary sync packet.player - the player to sync tostack - the itemstack