Class CaveBlockPriorityModifier

java.lang.Object
com.hypixel.hytale.server.worldgen.cave.CaveBlockPriorityModifier
All Implemented Interfaces:
BlockPriorityModifier

public class CaveBlockPriorityModifier extends Object implements BlockPriorityModifier
  • Field Details

  • Constructor Details

    • CaveBlockPriorityModifier

      public CaveBlockPriorityModifier()
  • Method Details

    • modifyCurrent

      public byte modifyCurrent(byte current, byte target)
      Description copied from interface: BlockPriorityModifier
      Modify the block priority value read from the BlockPriorityChunk before the comparison logic is performed to determine whether a block can be set at a given position.
      Specified by:
      modifyCurrent in interface BlockPriorityModifier
      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: BlockPriorityModifier
      Modify the block priority value to be set in the BlockPriorityChunk after 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:
      modifyTarget in interface BlockPriorityModifier
      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.