Package net.minecraft.world.entity
Class ItemBasedSteering
java.lang.Object
net.minecraft.world.entity.ItemBasedSteering
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private int
private final EntityDataAccessor<Integer>
private final SynchedEntityData
private final EntityDataAccessor<Boolean>
private static final int
private static final int
-
Constructor Summary
ConstructorDescriptionItemBasedSteering
(SynchedEntityData p_20841_, EntityDataAccessor<Integer> p_20842_, EntityDataAccessor<Boolean> p_20843_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalSaveData
(CompoundTag p_20848_) boolean
boost
(RandomSource p_217033_) float
private int
boolean
void
onSynced()
void
readAdditionalSaveData
(CompoundTag p_20853_) void
setSaddle
(boolean p_20850_) void
-
Field Details
-
MIN_BOOST_TIME
private static final int MIN_BOOST_TIME- See Also:
-
MAX_BOOST_TIME
private static final int MAX_BOOST_TIME- See Also:
-
entityData
-
boostTimeAccessor
-
hasSaddleAccessor
-
boosting
private boolean boosting -
boostTime
private int boostTime
-
-
Constructor Details
-
ItemBasedSteering
public ItemBasedSteering(SynchedEntityData p_20841_, EntityDataAccessor<Integer> p_20842_, EntityDataAccessor<Boolean> p_20843_)
-
-
Method Details
-
onSynced
public void onSynced() -
boost
-
tickBoost
public void tickBoost() -
boostFactor
public float boostFactor() -
boostTimeTotal
private int boostTimeTotal() -
addAdditionalSaveData
-
readAdditionalSaveData
-
setSaddle
public void setSaddle(boolean p_20850_) -
hasSaddle
public boolean hasSaddle()
-