Package net.minecraft.world.entity
Class ItemBasedSteering
java.lang.Object
net.minecraft.world.entity.ItemBasedSteering
-
Field Summary
Modifier and TypeFieldDescriptionboolean
int
private EntityDataAccessor<Integer>
int
private SynchedEntityData
private EntityDataAccessor<Boolean>
private static int
private static 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
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:
- Constant Field Values
-
MAX_BOOST_TIME
private static final int MAX_BOOST_TIME- See Also:
- Constant Field Values
-
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()
-