net.minecraft.entity.passive

public class AllayEntity

extends PathAwareEntity implements InventoryOwner, Vibrations

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable, InventoryOwner, Vibrations

net.minecraft.world.entity.animal.allay.Allay
net.minecraft.class_7298
net.minecraft.entity.passive.AllayEntity

Field summary

Modifier and TypeField
private static final Vec3i
ITEM_PICKUP_REACH
field_38399
ITEM_PICKUP_RANGE_EXPANDER
private static final int
LIFTING_ITEM_ANIMATION_DURATION
field_39461
field_39461
private static final float
DANCING_LOOP_DURATION
field_39462
field_39462
private static final float
SPINNING_ANIMATION_DURATION
field_39463
field_39463
private static final int
DEFAULT_DUPLICATION_COOLDOWN
field_57621
DEFAULT_DUPLICATION_COOLDOWN
private static final int
DUPLICATION_COOLDOWN_TICKS
field_39465
DUPLICATION_COOLDOWN
private static final int
NUM_OF_DUPLICATION_HEARTS
field_39679
field_39679
public static final int
MAX_NOTEBLOCK_DISTANCE
field_54974
field_54974
private static final TrackedData<Boolean>
DATA_DANCING
field_39466
DANCING
private static final TrackedData<Boolean>
DATA_CAN_DUPLICATE
field_39467
CAN_DUPLICATE
protected static final com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super AllayEntity>>>
SENSOR_TYPES
field_38398
SENSORS
protected static final com.google.common.collect.ImmutableList<MemoryModuleType<?>>
MEMORY_TYPES
field_38403
MEMORY_MODULES
public static final com.google.common.collect.ImmutableList<Float>
THROW_SOUND_PITCHES
field_38937
THROW_SOUND_PITCHES
private final EntityGameEventHandler<Vibrations$VibrationListener>
dynamicVibrationListener
field_38401
gameEventHandler
private Vibrations$ListenerData
vibrationData
field_44596
vibrationListenerData
private final Vibrations$Callback
vibrationUser
field_39468
vibrationCallback
private final EntityGameEventHandler<AllayEntity$JukeboxEventListener>
dynamicJukeboxListener
field_39469
jukeboxEventHandler
private final SimpleInventory
inventory
field_38402
inventory
private BlockPos
jukeboxPos
field_39470
jukeboxPos
private long
duplicationCooldown
field_39471
duplicationCooldown
private float
holdingItemAnimationTicks
field_38935
itemHoldAnimationTicks
private float
holdingItemAnimationTicks0
field_38936
lastItemHoldAnimationTicks
private float
dancingAnimationTicks
field_39472
danceTicks
private float
spinningAnimationTicks
field_39473
spinningAnimationTicks
private float
spinningAnimationTicks0
field_39474
lastSpinningAnimationTicks

Constructor summary

ModifierConstructor
public (EntityType<? extends AllayEntity> type, World level)

Method summary

Modifier and TypeMethod
protected Brain$Profile<AllayEntity>
brainProvider()
method_28306()
createBrainProfile()
protected Brain<?>
makeBrain(com.mojang.serialization.Dynamic<?> input)
method_18867(com.mojang.serialization.Dynamic<?> arg0)
deserializeBrain(com.mojang.serialization.Dynamic<?> arg0)
public Brain<AllayEntity>
getBrain()
method_18868()
getBrain()
public static DefaultAttributeContainer$Builder
createAttributes()
method_42655()
createAllayAttributes()
protected EntityNavigation
createNavigation(Level level)
method_5965(class_1937 arg0)
createNavigation(World arg0)
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
travel(Vec3 input)
method_6091(class_243 arg0)
travel(Vec3d arg0)
public boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
protected boolean
considersEntityAsAlly(Entity other)
method_61416(class_1297 arg0)
isInSameTeam(Entity arg0)
private boolean
isLikedPlayer(Entity other)
method_65349(class_1297 arg0)
isLikedBy(Entity player)
protected void
playStepSound(BlockPos pos, BlockState blockState)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
protected void
checkFallDamage(double ya, boolean onGround, BlockState onState, BlockPos pos)
method_5623(double arg0, boolean arg1, class_2680 arg2, class_2338 arg3)
fall(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
protected SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
protected float
getSoundVolume()
method_6107()
getSoundVolume()
protected void
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public void
aiStep()
method_6007()
tickMovement()
public void
tick()
method_5773()
tick()
public boolean
canPickUpLoot()
method_5936()
canPickUpLoot()
public boolean
hasItemInHand()
method_43396()
isHoldingItem()
protected boolean
canDispenserEquipIntoSlot(EquipmentSlot slot)
method_63626(class_1304 arg0)
canDispenserEquipSlot(EquipmentSlot arg0)
private boolean
isOnPickupCooldown()
method_42654()
isItemPickupCoolingDown()
protected ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public void
setJukeboxPlaying(BlockPos jukebox, boolean isPlaying)
method_44358(class_2338 arg0, boolean arg1)
updateJukeboxPos(BlockPos jukeboxPos, boolean playing)
public SimpleInventory
getInventory()
method_35199()
getInventory()
protected Vec3i
getPickupReach()
method_42646()
getItemPickUpRangeExpander()
public boolean
wantsToPickUp(ServerLevel level, ItemStack itemStack)
method_20820(class_3218 arg0, class_1799 arg1)
canGather(ServerWorld arg0, ItemStack arg1)
private boolean
allayConsidersItemEqual(ItemStack item1, ItemStack item2)
method_45340(class_1799 arg0, class_1799 arg1)
areItemsEqual(ItemStack stack, ItemStack stack2)
private boolean
hasNonMatchingPotion(ItemStack itemInHand, ItemStack pickupItem)
method_45341(class_1799 arg0, class_1799 arg1)
areDifferentPotions(ItemStack stack, ItemStack stack2)
protected void
pickUpItem(ServerLevel level, ItemEntity entity)
method_5949(class_3218 arg0, class_1542 arg1)
loot(ServerWorld arg0, ItemEntity arg1)
public boolean
isFlapping()
method_5776()
isFlappingWings()
public void
updateDynamicGameEventListener(BiConsumer<DynamicGameEventListener<?>, ServerLevel> action)
method_42147(BiConsumer<class_5715<?>, class_3218> arg0)
updateEventHandler(BiConsumer<EntityGameEventHandler<?>, ServerWorld> arg0)
public boolean
isDancing()
method_44359()
isDancing()
public void
setDancing(boolean isDancing)
method_44367(boolean arg0)
setDancing(boolean dancing)
private boolean
shouldStopDancing()
method_44361()
shouldStopDancing()
public float
getHoldingItemAnimationProgress(float a)
method_43397(float arg0)
getItemHoldAnimationTicks(float tickProgress)
public boolean
isSpinning()
method_44360()
isSpinning()
public float
getSpinningProgress(float a)
method_44368(float arg0)
getSpinningAnimationTicks(float tickProgress)
public boolean
equipmentHasChanged(ItemStack previous, ItemStack current)
method_45324(class_1799 arg0, class_1799 arg1)
areItemsDifferent(ItemStack arg0, ItemStack arg1)
protected void
dropEquipment(ServerLevel level)
method_16078(class_3218 arg0)
dropInventory(ServerWorld arg0)
public boolean
removeWhenFarAway(double distSqr)
method_5974(double arg0)
canImmediatelyDespawn(double 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)
protected boolean
shouldStayCloseToLeashHolder()
method_43689()
shouldFollowLeash()
private void
updateDuplicationCooldown()
method_44362()
tickDuplicationCooldown()
private void
setDuplicationCooldown(long duplicationCooldown)
method_67660(long arg0)
setDuplicationCooldown(long duplicationCooldown)
private void
duplicateAllay()
method_44363()
duplicate()
private void
resetDuplicationCooldown()
method_44364()
startDuplicationCooldown()
private boolean
canDuplicate()
method_44365()
canDuplicate()
private void
removeInteractionItem(Player player, ItemStack interactionItem)
method_44357(class_1657 arg0, class_1799 arg1)
decrementStackUnlessInCreative(PlayerEntity player, ItemStack stack)
public Vec3d
getLeashOffset()
method_29919()
getLeashOffset()
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
private void
spawnHeartParticle()
method_44608()
addHeartParticle()
public Vibrations$ListenerData
getVibrationData()
method_51298()
getVibrationListenerData()
public Vibrations$Callback
getVibrationUser()
method_51299()
getVibrationCallback()
private void
lambda$dropEquipment$0(ServerLevel arg0, ItemStack arg1)
method_64454(class_3218 arg0, class_1799 arg1)
method_64454(ServerWorld arg0, ItemStack stack)