public enum SemiblockTracker extends java.lang.Enum<SemiblockTracker>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
clearSemiblock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction direction)
Clear any record of a semiblock at the given world/pos/face
|
java.util.stream.Stream<ISemiBlock> |
getAllSemiblocks(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Retrieve all the semiblocks at the given position.
|
java.util.stream.Stream<ISemiBlock> |
getAllSemiblocks(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction offsetDir)
Retrieve all the semiblocks at the given position.
|
static SemiblockTracker |
getInstance() |
ISemiBlock |
getSemiblock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Retrieve the semiblock entity at the given world/pos
|
ISemiBlock |
getSemiblock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction direction)
Retrieve the semiblock at the given world/pos/face
|
java.util.stream.Stream<ISemiBlock> |
getSemiblocksInArea(net.minecraft.world.World world,
net.minecraft.util.math.AxisAlignedBB aabb)
Retrieve all the semiblocks in the given area.
|
static void |
onServerStopping(net.minecraftforge.fml.event.server.FMLServerStoppingEvent event) |
boolean |
putSemiblock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
ISemiBlock entity)
Add a semiblock at the given world & pos
|
static SemiblockTracker |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SemiblockTracker[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SemiblockTracker INSTANCE
public static SemiblockTracker[] values()
for (SemiblockTracker c : SemiblockTracker.values()) System.out.println(c);
public static SemiblockTracker valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static SemiblockTracker getInstance()
public static void onServerStopping(net.minecraftforge.fml.event.server.FMLServerStoppingEvent event)
public ISemiBlock getSemiblock(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
world - the worldpos - the blockpublic ISemiBlock getSemiblock(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.Direction direction)
world - the worldpos - the blockposdirection - face of the blockpos, or null for the block itselfpublic java.util.stream.Stream<ISemiBlock> getAllSemiblocks(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
world - the worldpos - the blockpospublic java.util.stream.Stream<ISemiBlock> getAllSemiblocks(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.Direction offsetDir)
world - the worldpos - the blockposoffsetDir - a direction to offset if neededpublic void clearSemiblock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction direction)
world - the worldpos - the blockposdirection - the side of the block, or null for the block itselfpublic boolean putSemiblock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
ISemiBlock entity)
world - the worldpos - the blockposentity - the semiblock entitypublic java.util.stream.Stream<ISemiBlock> getSemiblocksInArea(net.minecraft.world.World world, net.minecraft.util.math.AxisAlignedBB aabb)
world - the worldaabb - a bounding box which contains all the wanted semiblocks