Contents
Class CaveBlockPriorityModifier
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.CaveBlockPriorityModifier
- All Implemented Interfaces:
BlockPriorityModifier
-
Field Summary
FieldsFields inherited from interface BlockPriorityModifier
NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytemodifyCurrent(byte current, byte target) Modify the block priority value read from theBlockPriorityChunkbefore the comparison logic is performed to determine whether a block can be set at a given position.bytemodifyTarget(byte current, byte target) Modify the block priority value to be set in theBlockPriorityChunkafter the comparison logic has determined that a block can be set at a given position - ie the value that is written to the chunk.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
CaveBlockPriorityModifier
public CaveBlockPriorityModifier()
-
-
Method Details
-
modifyCurrent
public byte modifyCurrent(byte current, byte target) Description copied from interface:BlockPriorityModifierModify the block priority value read from theBlockPriorityChunkbefore the comparison logic is performed to determine whether a block can be set at a given position.- Specified by:
modifyCurrentin interfaceBlockPriorityModifier- Parameters:
current- The current priority value held in the chunk.target- The new priority value attempting to be set in the chunk.- Returns:
- The modified priority value.
-
modifyTarget
public byte modifyTarget(byte current, byte target) Description copied from interface:BlockPriorityModifierModify the block priority value to be set in theBlockPriorityChunkafter the comparison logic has determined that a block can be set at a given position - ie the value that is written to the chunk.- Specified by:
modifyTargetin interfaceBlockPriorityModifier- Parameters:
current- The original unmodified priority value held in the chunk.target- The new priority value to be set in the chunk.- Returns:
- The modified priority value.
-