net.minecraft.world.entity.animal.allay

public class Allay

extends PathfinderMob implements InventoryCarrier, VibrationSystem

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, CommandSource, ScoreHolder, Attackable, EquipmentUser, Leashable, Targeting, InventoryCarrier, VibrationSystem

cgk
net.minecraft.world.entity.animal.allay.Allay
net.minecraft.class_7298
net.minecraft.entity.passive.AllayEntity
net.minecraft.src.C_213035_
net.minecraft.world.entity.animal.allay.Allay

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
e
LOGGER
field_39045
LOGGER
f_218307_
private static final Vec3i
cc
ITEM_PICKUP_REACH
field_38399
ITEM_PICKUP_RANGE_EXPANDER
f_218299_
private static final int
cd
LIFTING_ITEM_ANIMATION_DURATION
field_39461
field_39461
f_238768_
private static final float
ce
DANCING_LOOP_DURATION
field_39462
field_39462
f_238696_
private static final float
cf
SPINNING_ANIMATION_DURATION
field_39463
field_39463
f_238650_
private static final Ingredient
cg
DUPLICATION_ITEM
field_39464
DUPLICATION_INGREDIENT
f_238776_
private static final int
ch
DUPLICATION_COOLDOWN_TICKS
field_39465
DUPLICATION_COOLDOWN
f_238543_
private static final int
ci
NUM_OF_DUPLICATION_HEARTS
field_39679
field_39679
f_238742_
private static final EntityDataAccessor<Boolean>
cj
DATA_DANCING
field_39466
DANCING
f_238627_
private static final EntityDataAccessor<Boolean>
ck
DATA_CAN_DUPLICATE
field_39467
CAN_DUPLICATE
f_238802_
protected static final com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super Allay>>>
b
SENSOR_TYPES
field_38398
SENSORS
f_218297_
protected static final com.google.common.collect.ImmutableList<MemoryModuleType<?>>
c
MEMORY_TYPES
field_38403
MEMORY_MODULES
f_218301_
public static final com.google.common.collect.ImmutableList<Float>
d
THROW_SOUND_PITCHES
field_38937
THROW_SOUND_PITCHES
f_218306_
private final DynamicGameEventListener<VibrationSystem$Listener>
cl
dynamicVibrationListener
field_38401
gameEventHandler
f_238685_
private VibrationSystem$Data
cm
vibrationData
field_44596
vibrationListenerData
f_279586_
private final VibrationSystem$User
cn
vibrationUser
field_39468
vibrationCallback
f_279563_
private final DynamicGameEventListener<Allay$JukeboxListener>
co
dynamicJukeboxListener
field_39469
jukeboxEventHandler
f_238563_
private final SimpleContainer
cp
inventory
field_38402
inventory
f_218303_
private BlockPos
cq
jukeboxPos
field_39470
jukeboxPos
f_238682_
private long
cr
duplicationCooldown
field_39471
duplicationCooldown
f_238791_
private float
cs
holdingItemAnimationTicks
field_38935
field_38935
f_218304_
private float
ct
holdingItemAnimationTicks0
field_38936
field_38936
f_218305_
private float
cu
dancingAnimationTicks
field_39472
danceTicks
f_238687_
private float
cv
spinningAnimationTicks
field_39473
field_39473
f_238541_
private float
cw
spinningAnimationTicks0
field_39474
field_39474
f_238552_

Constructor summary

ModifierConstructor
public (EntityType<? extends Allay> p_218311_, Level arg1)

Method summary

Modifier and TypeMethod
protected Brain$Provider<Allay>
dU()
brainProvider()
method_28306()
createBrainProfile()
m_5490_()
protected Brain<?>
a(com.mojang.serialization.Dynamic<?> arg0)
makeBrain(com.mojang.serialization.Dynamic<?> arg0)
method_18867(com.mojang.serialization.Dynamic<?> arg0)
deserializeBrain(com.mojang.serialization.Dynamic<?> arg0)
m_8075_(com.mojang.serialization.Dynamic<?> arg0)
public Brain<Allay>
dT()
getBrain()
method_18868()
getBrain()
m_6274_()
public static AttributeSupplier$Builder
s()
createAttributes()
method_42655()
createAllayAttributes()
m_218388_()
protected PathNavigation
b(dcw arg0)
createNavigation(Level arg0)
method_5965(class_1937 arg0)
createNavigation(World arg0)
m_6037_(C_1596_ arg0)
protected void
a(aka$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
public void
a(exc arg0)
travel(Vec3 arg0)
method_6091(class_243 arg0)
travel(Vec3d arg0)
m_7023_(C_3046_ arg0)
public boolean
a(brk arg0, float arg1)
hurt(DamageSource arg0, float arg1)
method_5643(class_1282 arg0, float arg1)
damage(DamageSource arg0, float arg1)
m_6469_(C_489_ p_218340_, float arg1)
protected void
b(jd arg0, dtc arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
m_7355_(C_4675_ p_218365_, C_2064_ arg1)
protected void
a(double arg0, boolean arg1, dtc arg2, jd arg3)
checkFallDamage(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
method_5623(double arg0, boolean arg1, class_2680 arg2, class_2338 arg3)
fall(double arg0, boolean arg1, BlockState arg2, BlockPos arg3)
m_7840_(double p_218317_, boolean p_218319_, C_2064_ arg2, C_4675_ arg3)
protected SoundEvent
v()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
protected SoundEvent
d(brk arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
n_()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
protected float
fa()
getSoundVolume()
method_6107()
getSoundVolume()
m_6121_()
protected void
ab()
customServerAiStep()
method_5958()
mobTick()
m_8024_()
public void
m_()
aiStep()
method_6007()
tickMovement()
m_8107_()
public void
l()
tick()
method_5773()
tick()
m_8119_()
public boolean
fS()
canPickUpLoot()
method_5936()
canPickUpLoot()
m_21531_()
public boolean
t()
hasItemInHand()
method_43396()
isHoldingItem()
m_218389_()
public boolean
f(cuq arg0)
canTakeItem(ItemStack arg0)
method_18397(class_1799 arg0)
canEquip(ItemStack arg0)
m_7066_(C_1391_ arg0)
private boolean
go()
isOnPickupCooldown()
method_42654()
isItemPickupCoolingDown()
m_218377_()
protected InteractionResult
b(cmx arg0, bqq arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
m_6071_(C_1141_ p_218362_, C_470_ arg1)
public void
b(jd arg0, boolean arg1)
setJukeboxPlaying(BlockPos arg0, boolean arg1)
method_44358(class_2338 arg0, boolean arg1)
updateJukeboxPos(BlockPos jukeboxPos, boolean playing)
m_240101_(C_4675_ p_240103_, boolean arg1)
public SimpleContainer
x()
getInventory()
method_35199()
getInventory()
m_35311_()
protected Vec3i
X()
getPickupReach()
method_42646()
getItemPickUpRangeExpander()
m_213552_()
public boolean
k(cuq arg0)
wantsToPickUp(ItemStack arg0)
method_20820(class_1799 arg0)
canGather(ItemStack arg0)
m_7243_(C_1391_ arg0)
private boolean
d(cuq arg0, cuq arg1)
allayConsidersItemEqual(ItemStack arg0, ItemStack arg1)
method_45340(class_1799 arg0, class_1799 arg1)
areItemsEqual(ItemStack stack, ItemStack stack2)
m_245613_(C_1391_ p_250405_, C_1391_ arg1)
private boolean
e(cuq arg0, cuq arg1)
hasNonMatchingPotion(ItemStack arg0, ItemStack arg1)
method_45341(class_1799 arg0, class_1799 arg1)
areDifferentPotions(ItemStack stack, ItemStack stack2)
m_247678_(C_1391_ p_250839_, C_1391_ arg1)
protected void
b(cjh arg0)
pickUpItem(ItemEntity arg0)
method_5949(class_1542 arg0)
loot(ItemEntity arg0)
m_7581_(C_976_ arg0)
protected void
aa()
sendDebugPackets()
method_18409()
sendAiDebugData()
m_8025_()
public boolean
aW()
isFlapping()
method_5776()
isFlappingWings()
m_142039_()
public void
a(BiConsumer<dxw<?>, aqu> arg0)
updateDynamicGameEventListener(BiConsumer<DynamicGameEventListener<?>, ServerLevel> arg0)
method_42147(BiConsumer<class_5715<?>, class_3218> arg0)
updateEventHandler(BiConsumer<EntityGameEventHandler<?>, ServerWorld> arg0)
m_213651_(BiConsumer<C_213129_<?>, C_12_> arg0)
public boolean
gk()
isDancing()
method_44359()
isDancing()
m_239559_()
public void
x(boolean arg0)
setDancing(boolean arg0)
method_44367(boolean arg0)
setDancing(boolean dancing)
m_240177_(boolean arg0)
private boolean
gp()
shouldStopDancing()
method_44361()
shouldStopDancing()
m_239812_()
public float
H(float arg0)
getHoldingItemAnimationProgress(float arg0)
method_43397(float arg0)
method_43397(float arg0)
m_218394_(float arg0)
public boolean
gl()
isSpinning()
method_44360()
isSpinning()
m_239302_()
public float
I(float arg0)
getSpinningProgress(float arg0)
method_44368(float arg0)
method_44368(float arg0)
m_240056_(float arg0)
public boolean
a(cuq arg0, cuq arg1)
equipmentHasChanged(ItemStack arg0, ItemStack arg1)
method_45324(class_1799 arg0, class_1799 arg1)
areItemsDifferent(ItemStack arg0, ItemStack arg1)
m_246525_(C_1391_ p_251595_, C_1391_ arg1)
protected void
ez()
dropEquipment()
method_16078()
dropInventory()
m_5907_()
public boolean
h(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
m_6785_(double arg0)
public void
b(ub arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(ub arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
protected boolean
gi()
shouldStayCloseToLeashHolder()
method_43689()
shouldFollowLeash()
m_213814_()
private void
gq()
updateDuplicationCooldown()
method_44362()
tickDuplicationCooldown()
m_218375_()
private boolean
n(cuq arg0)
isDuplicationItem(ItemStack arg0)
method_44366(class_1799 arg0)
matchesDuplicationIngredient(ItemStack stack)
m_239735_(C_1391_ arg0)
private void
gr()
duplicateAllay()
method_44363()
duplicate()
m_218376_()
private void
gs()
resetDuplicationCooldown()
method_44364()
startDuplicationCooldown()
m_239811_()
private boolean
gt()
canDuplicate()
method_44365()
canDuplicate()
m_218324_()
private void
a(cmx arg0, cuq arg1)
removeInteractionItem(Player arg0, ItemStack arg1)
method_44357(class_1657 arg0, class_1799 arg1)
decrementStackUnlessInCreative(PlayerEntity player, ItemStack stack)
m_239358_(C_1141_ p_239360_, C_1391_ arg1)
public Vec3
cM()
getLeashOffset()
method_29919()
getLeashOffset()
m_7939_()
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
m_7822_(byte arg0)
private void
gu()
spawnHeartParticle()
method_44608()
addHeartParticle()
m_240069_()
public VibrationSystem$Data
gm()
getVibrationData()
method_51298()
getVibrationListenerData()
m_280002_()
public VibrationSystem$User
gn()
getVibrationUser()
method_51299()
getVibrationCallback()
m_280445_()