Class BlockDestructionProgress

java.lang.Object
net.minecraft.server.level.BlockDestructionProgress
All Implemented Interfaces:
Comparable<BlockDestructionProgress>

public class BlockDestructionProgress extends Object implements Comparable<BlockDestructionProgress>
  • Field Details

    • id

      private final int id
    • pos

      private final BlockPos pos
    • progress

      private int progress
    • updatedRenderTick

      private int updatedRenderTick
  • Constructor Details

    • BlockDestructionProgress

      public BlockDestructionProgress(int pId, BlockPos pPos)
  • Method Details

    • getId

      public int getId()
    • getPos

      public BlockPos getPos()
    • setProgress

      public void setProgress(int pDamage)
      Inserts damage value into this partially destroyed Block. -1 causes client renderer to delete it, otherwise ranges from 1 to 10.
    • getProgress

      public int getProgress()
    • updateTick

      public void updateTick(int pCreatedAtCloudUpdateTick)
      Saves the current Cloud update tick into the PartiallyDestroyedBlock.
    • getUpdatedRenderTick

      public int getUpdatedRenderTick()
    • equals

      public boolean equals(Object pOther)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(BlockDestructionProgress pOther)
      Specified by:
      compareTo in interface Comparable<BlockDestructionProgress>