Class WorldUtil
java.lang.Object
com.hypixel.hytale.server.core.modules.collision.WorldUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intfindFarthestEmptySpaceAbove(ComponentAccessor<ChunkStore> chunkStore, ChunkColumn chunkColumnComponent, BlockChunk blockChunkComponent, int x, int y, int z, int yFail) static intfindFarthestEmptySpaceBelow(ComponentAccessor<ChunkStore> chunkStore, ChunkColumn chunkColumnComponent, BlockChunk blockChunkComponent, int x, int y, int z, int yFail) static intfindFluidBlock(ComponentAccessor<ChunkStore> chunkStore, ChunkColumn chunkColumnComponent, BlockChunk blockChunkComponent, int x, int y, int z, boolean allowBubble) static intgetFluidIdAtPosition(ComponentAccessor<ChunkStore> chunkStore, ChunkColumn chunkColumnComponent, int x, int y, int z) static longgetPackedMaterialAndFluidAtPosition(Ref<ChunkStore> chunkRef, ComponentAccessor<ChunkStore> chunkStore, double x, double y, double z) static intgetWaterLevel(ComponentAccessor<ChunkStore> chunkStore, ChunkColumn chunkColumnComponent, BlockChunk blockChunkComponent, int x, int z, int startY) static booleanisEmptyOnlyBlock(com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int fluidId) static booleanisFluidOnlyBlock(com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int fluidId) static booleanisSolidOnlyBlock(com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int fluidId)
-
Constructor Details
-
WorldUtil
public WorldUtil()
-
-
Method Details
-
isFluidOnlyBlock
public static boolean isFluidOnlyBlock(@Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int fluidId) -
isSolidOnlyBlock
public static boolean isSolidOnlyBlock(@Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int fluidId) -
isEmptyOnlyBlock
public static boolean isEmptyOnlyBlock(@Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int fluidId) -
getFluidIdAtPosition
public static int getFluidIdAtPosition(@Nonnull ComponentAccessor<ChunkStore> chunkStore, @Nonnull ChunkColumn chunkColumnComponent, int x, int y, int z) -
getPackedMaterialAndFluidAtPosition
public static long getPackedMaterialAndFluidAtPosition(@Nonnull Ref<ChunkStore> chunkRef, @Nonnull ComponentAccessor<ChunkStore> chunkStore, double x, double y, double z) -
findFluidBlock
public static int findFluidBlock(@Nonnull ComponentAccessor<ChunkStore> chunkStore, @Nonnull ChunkColumn chunkColumnComponent, @Nonnull BlockChunk blockChunkComponent, int x, int y, int z, boolean allowBubble) -
getWaterLevel
public static int getWaterLevel(@Nonnull ComponentAccessor<ChunkStore> chunkStore, @Nonnull ChunkColumn chunkColumnComponent, @Nonnull BlockChunk blockChunkComponent, int x, int z, int startY) -
findFarthestEmptySpaceBelow
public static int findFarthestEmptySpaceBelow(@Nonnull ComponentAccessor<ChunkStore> chunkStore, @Nonnull ChunkColumn chunkColumnComponent, @Nonnull BlockChunk blockChunkComponent, int x, int y, int z, int yFail) -
findFarthestEmptySpaceAbove
public static int findFarthestEmptySpaceAbove(@Nonnull ComponentAccessor<ChunkStore> chunkStore, @Nonnull ChunkColumn chunkColumnComponent, @Nonnull BlockChunk blockChunkComponent, int x, int y, int z, int yFail)
-