Contents
Class BlockChunk
java.lang.Object
com.hypixel.hytale.server.core.universe.world.chunk.BlockChunk
- All Implemented Interfaces:
Component<ChunkStore>, Cloneable
- Since:
- 22.02.2016
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<BlockChunk> static final intVersion history: == Pre launch, removed == * Version 0: Initial version * Version 1: Fluids are no longer blocks.Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()getCachedTintsPacket(int x, int z) static ComponentType<ChunkStore, BlockChunk> intgetTint(int x, int z) booleanvoidDrops the cached column packet so the next send rebuilds it from current state.voidsetTint(WorldChunk column, int x, int z, int tint)
-
Field Details
-
VERSION
public static final int VERSIONVersion history: == Pre launch, removed == * Version 0: Initial version * Version 1: Fluids are no longer blocks. Extracted from PaletteChunkSection into FluidSection * Version 2: Deco blocks and support blocks removed and placed in BlockPhysics. * Version 3: Moved most data into a chunk section instead of column == Post launch == * Version 4: Moved heightmap to dedicated component- See Also:
-
CODEC
-
-
Constructor Details
-
BlockChunk
-
-
Method Details
-
getComponentType
-
clone
- Specified by:
clonein interfaceComponent<ChunkStore>- Returns:
- a clone instance of the original component instance.
-
cloneSerializable
- Specified by:
cloneSerializablein interfaceComponent<ChunkStore>- Returns:
- a clone instance of the original component instance.
-
hasLegacyHeightmap
public boolean hasLegacyHeightmap() -
takeLegacyHeightmap
-
getTint
public int getTint(int x, int z) -
setTint
-
invalidateColumnPacket
public void invalidateColumnPacket()Drops the cached column packet so the next send rebuilds it from current state. Must be called when the column heightmap changes, because the cachedSetColumnembedsserializeToInts(), so without this a (re)tracking client is served a stale heightmap (e.g. an out-of-view island's true top reverting to the ground prediction). Tint edits invalidate inline. -
getCachedTintsPacket
-