Package net.minecraft.world.entity
Class ItemBasedSteering
java.lang.Object
net.minecraft.world.entity.ItemBasedSteering
-
Field Summary
Modifier and TypeFieldDescriptionboolean
int
private final EntityDataAccessor<Integer>
int
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_) boolean
void
onSynced()
void
readAdditionalSaveData
(CompoundTag p_20853_) void
setSaddle
(boolean p_20850_)
-
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
public boolean boosting -
boostTime
public int boostTime -
boostTimeTotal
public int boostTimeTotal
-
-
Constructor Details
-
ItemBasedSteering
public ItemBasedSteering(SynchedEntityData p_20841_, EntityDataAccessor<Integer> p_20842_, EntityDataAccessor<Boolean> p_20843_)
-
-
Method Details
-
onSynced
public void onSynced() -
boost
-
addAdditionalSaveData
-
readAdditionalSaveData
-
setSaddle
public void setSaddle(boolean p_20850_) -
hasSaddle
public boolean hasSaddle()
-