Package net.minecraft.server.level
Class BlockDestructionProgress
java.lang.Object
net.minecraft.server.level.BlockDestructionProgress
- All Implemented Interfaces:
Comparable<BlockDestructionProgress>
public class BlockDestructionProgress
extends Object
implements Comparable<BlockDestructionProgress>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final BlockPosprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(BlockDestructionProgress pOther) booleanintgetId()getPos()intintinthashCode()voidsetProgress(int pDamage) Inserts damage value into this partially destroyed Block. -1 causes client renderer to delete it, otherwise ranges from 1 to 10.voidupdateTick(int pCreatedAtCloudUpdateTick) Saves the current Cloud update tick into the PartiallyDestroyedBlock.
-
Field Details
-
id
private final int id -
pos
-
progress
private int progress -
updatedRenderTick
private int updatedRenderTick
-
-
Constructor Details
-
BlockDestructionProgress
-
-
Method Details
-
getId
public int getId() -
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
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<BlockDestructionProgress>
-