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 int
private final BlockPos
private int
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
getId()
getPos()
int
int
int
hashCode()
void
setProgress
(int damage) Inserts damage value into this partially destroyed Block.void
updateTick
(int createdAtCloudUpdateTick) 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 damage) 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 createdAtCloudUpdateTick) Saves the current Cloud update tick into the PartiallyDestroyedBlock. -
getUpdatedRenderTick
public int getUpdatedRenderTick() -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<BlockDestructionProgress>
-