Class World
java.lang.Object
com.zenith.feature.player.World
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaffectsFlow(FluidState inType, @Nullable FluidState fluidState) static PositionblockInteractionCenter(int x, int y, int z) static booleanblocksMotion(Block block) static booleanstatic BlockgetBlock(int blockStateId) static BlockgetBlock(int x, int y, int z) static BlockgetBlock(long blockPos) static Blockstatic it.unimi.dsi.fastutil.longs.LongListstatic it.unimi.dsi.fastutil.longs.LongListstatic BlockStategetBlockState(int x, int y, int z) static BlockStategetBlockState(long blockPos) static BlockStategetBlockState(BlockPos blockPos) static intgetBlockStateId(int x, int y, int z) static intgetBlockStateId(BlockPos blockPos) static it.unimi.dsi.fastutil.objects.ReferenceSet<Property<?>> getBlockStateProperties(int blockStateId) Available properties:BlockStateProperties*static it.unimi.dsi.fastutil.objects.ReferenceSet<Property<?>> getBlockStateProperties(Block block) Available properties:BlockStateProperties*static <T extends Comparable<T>>
@Nullable TgetBlockStateProperty(int blockStateId, Property<T> property) Available properties:BlockStateProperties*static <T extends Comparable<T>>
@Nullable TgetBlockStateProperty(Block block, int blockStateId, Property<T> property) Available properties:BlockStateProperties*static @Nullable ChunkgetChunk(int chunkX, int chunkZ) static @Nullable ChunkSectiongetChunkSection(int x, int y, int z) static List<BlockState> static List<BlockState> static DimensionDatastatic doublestatic doublestatic doublestatic voidstatic voidgetEntityCollisionBoxes(LocalizedCollisionBox cb, List<LocalizedCollisionBox> results, Predicate<Entity> filter) static MutableVec3dgetFluidFlow(int x, int y, int z) static MutableVec3dgetFluidFlow(BlockState localBlockState) static floatgetFluidHeight(@Nullable FluidState fluidState) static @Nullable FluidStategetFluidState(int blockStateId) static @Nullable FluidStategetFluidState(int x, int y, int z) static List<LocalizedCollisionBox> static voidstatic booleanhasBlockStateProperty(int blockStateId, Property<?> property) Available properties:BlockStateProperties*static booleanhasBlockStateProperty(Block block, Property<?> property) Available properties:BlockStateProperties*static booleanisBoat(EntityType entityType) static booleanisChunkLoadedBlockPos(int blockX, int blockZ) static booleanisChunkLoadedChunkPos(int chunkX, int chunkZ) static booleanstatic booleanisInWorldBounds(int x, int y, int z) static booleanstatic booleanstatic booleanonClimbable(EntityLiving entity)
-
Method Details
-
getChunkSection
-
getChunk
-
getCurrentDimension
-
isChunkLoadedBlockPos
public static boolean isChunkLoadedBlockPos(int blockX, int blockZ) -
isChunkLoadedChunkPos
public static boolean isChunkLoadedChunkPos(int chunkX, int chunkZ) -
isInWorldBounds
public static boolean isInWorldBounds(int x, int y, int z) -
getBlockStateId
-
getBlockStateId
public static int getBlockStateId(int x, int y, int z) -
getBlockState
-
getBlockState
-
getBlockState
-
getBlockStateProperty
public static <T extends Comparable<T>> @Nullable T getBlockStateProperty(int blockStateId, Property<T> property) Available properties:BlockStateProperties* -
getBlockStateProperty
public static <T extends Comparable<T>> @Nullable T getBlockStateProperty(Block block, int blockStateId, Property<T> property) Available properties:BlockStateProperties* -
hasBlockStateProperty
Available properties:BlockStateProperties* -
hasBlockStateProperty
Available properties:BlockStateProperties* -
getBlockStateProperties
public static it.unimi.dsi.fastutil.objects.ReferenceSet<Property<?>> getBlockStateProperties(int blockStateId) Available properties:BlockStateProperties* -
getBlockStateProperties
public static it.unimi.dsi.fastutil.objects.ReferenceSet<Property<?>> getBlockStateProperties(Block block) Available properties:BlockStateProperties* -
getBlock
-
getBlock
-
getBlock
-
getBlock
-
getIntersectingCollisionBoxes
-
getSolidBlockCollisionBoxes
public static void getSolidBlockCollisionBoxes(LocalizedCollisionBox cb, List<LocalizedCollisionBox> results) -
getEntityBlockCollisionBoxes
public static void getEntityBlockCollisionBoxes(LocalizedCollisionBox cb, List<LocalizedCollisionBox> results) -
containsLiquid
-
getEntityCollisionBoxes
public static void getEntityCollisionBoxes(LocalizedCollisionBox cb, List<LocalizedCollisionBox> results, Predicate<Entity> filter) -
isBoat
-
isWater
-
isFluid
-
getFluidState
-
getBlockPosLongListInCollisionBox
public static it.unimi.dsi.fastutil.longs.LongList getBlockPosLongListInCollisionBox(LocalizedCollisionBox cb) -
getBlockPosLongListInCollisionBoxInside
public static it.unimi.dsi.fastutil.longs.LongList getBlockPosLongListInCollisionBoxInside(LocalizedCollisionBox cb) -
getCollidingBlockStates
-
getCollidingBlockStatesInside
-
isSpaceEmpty
-
findSupportingBlockPos
-
getFluidFlow
-
getFluidFlow
-
blocksMotion
-
getFluidHeight
-
affectsFlow
-
getFluidState
-
onClimbable
-
blockInteractionCenter
-
getCurrentPlayerX
public static double getCurrentPlayerX() -
getCurrentPlayerY
public static double getCurrentPlayerY() -
getCurrentPlayerZ
public static double getCurrentPlayerZ()
-