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 List<BlockState> no collision box clip checkstatic @Nullable ChunkgetChunk(int chunkX, int chunkZ) static @Nullable ChunkSectiongetChunkSection(int x, int y, int z) static List<BlockState> static List<BlockState> with collision box intersect checkstatic 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, int x, int y, int z) static @Nullable FluidStategetFluidState(int blockStateId) static @Nullable FluidStategetFluidState(int x, int y, int z) static List<LocalizedCollisionBox> static voidstatic intgetSurfaceHeight(int x, int z) static @Nullable TickableBlockEntitygetTickableBlockEntity(int x, int y, int z) static @Nullable TickableBlockEntitygetTickableBlockEntity(BlockPos blockPos) static 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 booleanisFluid(int blockStateId) static booleanDeprecated.static booleanisInWorldBounds(int x, int y, int z) static booleanstatic booleanisWater(int blockStateId) static booleanDeprecated.static booleanonClimbable(EntityLiving entity) static voidremoveTickableBlockEntity(int x, int y, int z) static voidremoveTickableBlockEntity(BlockPos blockPos) static voidsetBlockState(int x, int y, int z, int blockStateId) static voidsetBlockState(BlockState blockState) static voidsetTickableBlockEntity(TickableBlockEntity blockEntity)
-
Method Details
-
getChunkSection
-
getChunk
-
getCurrentDimension
-
isChunkLoadedBlockPos
public static boolean isChunkLoadedBlockPos(int blockX, int blockZ) -
isChunkLoadedChunkPos
public static boolean isChunkLoadedChunkPos(int chunkX, int chunkZ) -
getSurfaceHeight
public static int getSurfaceHeight(int x, int z) -
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
-
setBlockState
public static void setBlockState(int x, int y, int z, int blockStateId) -
setBlockState
-
getTickableBlockEntity
-
getTickableBlockEntity
-
setTickableBlockEntity
-
removeTickableBlockEntity
-
removeTickableBlockEntity
public static void removeTickableBlockEntity(int x, int y, int z) -
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
Deprecated. -
isWater
public static boolean isWater(int blockStateId) -
isFluid
Deprecated. -
isFluid
public static boolean isFluid(int blockStateId) -
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
with collision box intersect check -
getBlockStatesInside
no collision box clip check -
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()
-