Class BlockDataProvider

java.lang.Object
com.hypixel.hytale.server.core.modules.collision.BlockData
com.hypixel.hytale.server.core.modules.collision.BlockDataProvider

public class BlockDataProvider extends BlockData
  • Field Details

    • FULL_LEVEL

      protected static int FULL_LEVEL
    • INVALID_CHUNK_SECTION_INDEX

      protected final int INVALID_CHUNK_SECTION_INDEX
      See Also:
    • world

      @Nullable protected World world
    • chunk

      @Nullable protected WorldChunk chunk
    • chunkSectionIndex

      protected int chunkSectionIndex
    • chunkSection

      @Nullable protected com.hypixel.hytale.server.core.universe.world.chunk.section.BlockSection chunkSection
    • chunkX

      protected int chunkX
    • chunkY

      protected int chunkY
    • chunkZ

      protected int chunkZ
    • chunkSectionRef

      @Nullable protected Ref<ChunkStore> chunkSectionRef
  • Constructor Details

    • BlockDataProvider

      public BlockDataProvider()
  • Method Details

    • initialize

      public void initialize(World world)
    • cleanup

      public void cleanup()
    • read

      public void read(int x, int y, int z)
    • readBlockId

      protected int readBlockId(int x, int y, int z)
    • readRotation

      protected int readRotation(int x, int y, int z)
    • readFiller

      protected int readFiller(int x, int y, int z)
    • readFluidId

      protected int readFluidId(int x, int y, int z)
    • readFluidLevel

      protected byte readFluidLevel(int x, int y, int z)
    • setBlock

      protected void setBlock(int id, @Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType type, int rotation, int material, BlockBoundingBoxes box)
    • setBlock

      protected void setBlock(int id, @Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType type, int rotation, int material)
    • cleanup0

      protected void cleanup0()
    • materialFromFillLevel

      protected static int materialFromFillLevel(@Nonnull Fluid fluid, byte level)