java.lang.Object
com.hypixel.hytale.server.core.modules.collision.WorldUtil

public final class WorldUtil extends Object
  • 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)