public class DestroyBlockProgress
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
createdAtCloudUpdateTick
keeps track of how many ticks this PartiallyDestroyedBlock already exists
|
private int |
miningPlayerEntId
entity ID of the player associated with this partially destroyed Block.
|
private int |
partialBlockProgress
damage ranges from 1 to 10.
|
private BlockPos |
position |
Constructor and Description |
---|
DestroyBlockProgress(int miningPlayerEntIdIn,
BlockPos positionIn) |
Modifier and Type | Method and Description |
---|---|
int |
getCreationCloudUpdateTick()
retrieves the 'date' at which the PartiallyDestroyedBlock was created
|
int |
getPartialBlockDamage() |
BlockPos |
getPosition() |
void |
setCloudUpdateTick(int createdAtCloudUpdateTickIn)
saves the current Cloud update tick into the PartiallyDestroyedBlock
|
void |
setPartialBlockDamage(int damage)
inserts damage value into this partially destroyed Block.
|
private final int miningPlayerEntId
private final BlockPos position
private int partialBlockProgress
private int createdAtCloudUpdateTick
public DestroyBlockProgress(int miningPlayerEntIdIn, BlockPos positionIn)
public BlockPos getPosition()
public void setPartialBlockDamage(int damage)
public int getPartialBlockDamage()
public void setCloudUpdateTick(int createdAtCloudUpdateTickIn)
public int getCreationCloudUpdateTick()