Class BlockDataProvider
java.lang.Object
com.hypixel.hytale.server.core.modules.collision.BlockData
com.hypixel.hytale.server.core.modules.collision.BlockDataProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected WorldChunkprotected com.hypixel.hytale.server.core.universe.world.chunk.section.BlockSectionprotected intprotected Ref<ChunkStore> protected intprotected intprotected intprotected static intprotected final intprotected WorldFields inherited from class com.hypixel.hytale.server.core.modules.collision.BlockData
blockBoundingBoxes, blockId, blockType, blockTypeKey, collisionMaterials, filler, fillHeight, fluid, fluidId, fluidKey, rotation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()protected voidcleanup0()voidinitialize(World world) protected static intmaterialFromFillLevel(Fluid fluid, byte level) voidread(int x, int y, int z) protected intreadBlockId(int x, int y, int z) protected intreadFiller(int x, int y, int z) protected intreadFluidId(int x, int y, int z) protected bytereadFluidLevel(int x, int y, int z) protected intreadRotation(int x, int y, int z) protected voidsetBlock(int id, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType type, int rotation, int material) protected voidsetBlock(int id, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType type, int rotation, int material, BlockBoundingBoxes box) Methods inherited from class com.hypixel.hytale.server.core.modules.collision.BlockData
assign, clear, getBlockBoundingBoxes, getBlockDamage, getBlockType, getCollisionMaterials, getFillHeight, getFluid, getFluidId, getSubmergeDamage, isFiller, isTrigger, originX, originY, originZ
-
Field Details
-
FULL_LEVEL
protected static int FULL_LEVEL -
INVALID_CHUNK_SECTION_INDEX
protected final int INVALID_CHUNK_SECTION_INDEX- See Also:
-
world
-
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
-
-
Constructor Details
-
BlockDataProvider
public BlockDataProvider()
-
-
Method Details
-
initialize
-
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
-