public class SaddledComponent extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
boosted |
private TrackedData<Integer> |
boostTime |
int |
currentBoostTime |
private DataTracker |
dataTracker |
int |
field_23216 |
private TrackedData<Boolean> |
saddled |
Constructor and Description |
---|
SaddledComponent(DataTracker dataTracker,
TrackedData<Integer> boostTime,
TrackedData<Boolean> saddled) |
Modifier and Type | Method and Description |
---|---|
void |
boost() |
boolean |
boost(Random random) |
void |
fromTag(CompoundTag tag) |
boolean |
isSaddled() |
void |
setSaddled(boolean saddled) |
void |
toTag(CompoundTag tag) |
private final DataTracker dataTracker
private final TrackedData<Integer> boostTime
private final TrackedData<Boolean> saddled
public boolean boosted
public int field_23216
public int currentBoostTime
public SaddledComponent(DataTracker dataTracker, TrackedData<Integer> boostTime, TrackedData<Boolean> saddled)
public void boost()
public boolean boost(Random random)
public void toTag(CompoundTag tag)
public void fromTag(CompoundTag tag)
public void setSaddled(boolean saddled)
public boolean isSaddled()