net.minecraft.entity.passive

public abstract class AbstractDonkeyEntity

extends AbstractHorseEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable, JumpingMount, Mount, RideableInventory, Tameable

net.minecraft.world.entity.animal.equine.AbstractChestedHorse
net.minecraft.class_1492
net.minecraft.entity.passive.AbstractDonkeyEntity

Field summary

Modifier and TypeField
private static final TrackedData<Boolean>
DATA_ID_CHEST
field_6943
CHEST
private static final boolean
DEFAULT_HAS_CHEST
field_57629
DEFAULT_HAS_CHEST
private final EntityDimensions
babyDimensions
field_47806
babyBaseDimensions

Constructor summary

ModifierConstructor
protected (EntityType<? extends AbstractDonkeyEntity> type, World level)

Method summary

Modifier and TypeMethod
protected void
randomizeAttributes(RandomSource random)
method_6001(class_5819 arg0)
initAttributes(Random arg0)
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public static DefaultAttributeContainer$Builder
createBaseChestedHorseAttributes()
method_26898()
createAbstractDonkeyAttributes()
public boolean
hasChest()
method_6703()
hasChest()
public void
setChest(boolean flag)
method_6704(boolean arg0)
setHasChest(boolean hasChest)
public EntityDimensions
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
protected void
dropEquipment(ServerLevel level)
method_16078(class_3218 arg0)
dropInventory(ServerWorld arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public StackReference
getSlot(int slot)
method_32318(int arg0)
getStackReference(int arg0)
public ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
private void
equipChest(Player player, ItemStack itemStack)
method_45374(class_1657 arg0, class_1799 arg1)
addChest(PlayerEntity player, ItemStack chest)
public Vec3d[]
getQuadLeashOffsets()
method_70992()
getQuadLeashOffsets()
protected void
playChestEquipsSound()
method_6705()
playAddChestSound()
public int
getInventoryColumns()
method_6702()
getInventoryColumns()