net.minecraft.world.entity.animal

public class PolarBear

extends Animal implements NeutralMob

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource, NeutralMob

beo
net.minecraft.world.entity.animal.PolarBear
net.minecraft.class_1456
net.minecraft.entity.passive.PolarBearEntity
net.minecraft.src.C_880_
net.minecraft.world.entity.animal.EntityPolarBear

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Boolean>
bT
DATA_STANDING_ID
field_6840
WARNING
f_29510_
private static final float
bU
STAND_ANIMATION_TICKS
field_30352
field_30352
f_149003_
private float
bW
clientSideStandAnimationO
field_6838
lastWarningAnimationProgress
f_29511_
private float
bX
clientSideStandAnimation
field_6837
warningAnimationProgress
f_29512_
private int
bY
warningSoundTicks
field_6839
warningSoundCooldown
f_29513_
private static final UniformInt
bZ
PERSISTENT_ANGER_TIME
field_25369
ANGER_TIME_RANGE
f_29514_
private int
ca
remainingPersistentAngerTime
field_25370
angerTime
f_29515_
private UUID
cb
persistentAngerTarget
field_25368
targetUuid
f_29516_

Constructor summary

ModifierConstructor
public (EntityType<? extends PolarBear> p_29520_, Level arg1)

Method summary

Modifier and TypeMethod
public AgeableMob
a(abr arg0, ate arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
m_142606_(C_12_ p_149006_, C_141062_ arg1)
createChild(WorldServer arg0, EntityAgeable arg1)
public boolean
n(bqq arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
isBreedItem(ItemStack arg0)
protected void
v()
registerGoals()
method_5959()
initGoals()
m_8099_()
initPathfinder()
public static AttributeSupplier$Builder
p()
createAttributes()
method_26891()
createPolarBearAttributes()
m_29560_()
public static boolean
c(atk<beo> arg0, bwr arg1, aty arg2, gg arg3, Random arg4)
checkPolarBearSpawnRules(EntityType<PolarBear> arg0, LevelAccessor arg1, MobSpawnType arg2, BlockPos arg3, Random arg4)
method_20668(class_1299<class_1456> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, Random arg4)
canSpawn(EntityType<PolarBearEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
m_29549_(C_513_<C_880_> p_29550_, C_1598_ p_29551_, C_529_ p_29552_, C_4675_ p_29553_, Random p_29554_)
public void
a(na arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
loadData(NBTTagCompound arg0)
public void
b(na arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
saveData(NBTTagCompound arg0)
public void
c()
startPersistentAngerTimer()
method_29509()
chooseRandomAngerTime()
m_6825_()
anger()
public void
a(int arg0)
setRemainingPersistentAngerTime(int arg0)
method_29514(int arg0)
setAngerTime(int arg0)
m_7870_(int arg0)
setAnger(int arg0)
public int
a()
getRemainingPersistentAngerTime()
method_29507()
getAngerTime()
m_6784_()
getAnger()
public void
a(UUID arg0)
setPersistentAngerTarget(UUID arg0)
method_29513(UUID arg0)
setAngryAt(UUID arg0)
m_6925_(UUID arg0)
setAngerTarget(UUID arg0)
public UUID
b()
getPersistentAngerTarget()
method_29508()
getAngryAt()
m_6120_()
getAngerTarget()
protected SoundEvent
q()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
getSoundAmbient()
protected SoundEvent
c(asq arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
getSoundHurt(DamageSource arg0)
protected SoundEvent
v_()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
getSoundDeath()
protected void
b(gg arg0, ckt arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
m_7355_(C_4675_ p_29546_, C_2064_ arg1)
protected void
t()
playWarningSound()
method_6602()
playWarningSound()
m_29561_()
protected void
a_()
defineSynchedData()
method_5693()
initDataTracker()
m_8097_()
initDatawatcher()
public void
k()
tick()
method_5773()
tick()
m_8119_()
tick()
public EntityDimensions
a(aug arg0)
getDimensions(Pose arg0)
method_18377(class_4050 arg0)
getDimensions(EntityPose arg0)
m_6972_(C_535_ arg0)
public boolean
z(atg arg0)
doHurtTarget(Entity arg0)
method_6121(class_1297 arg0)
tryAttack(Entity arg0)
m_7327_(C_507_ arg0)
attackEntity(Entity arg0)
public boolean
fw()
isStanding()
method_6600()
isWarning()
m_29562_()
public void
v(boolean arg0)
setStanding(boolean arg0)
method_6603(boolean arg0)
setWarning(boolean warning)
m_29567_(boolean arg0)
public float
z(float arg0)
getStandingAnimationScale(float arg0)
method_6601(float arg0)
getWarningAnimationProgress(float tickDelta)
m_29569_(float arg0)
protected float
ev()
getWaterSlowDown()
method_6120()
getBaseMovementSpeedMultiplier()
m_6108_()
public SpawnGroupData
a(bxe arg0, arz arg1, aty arg2, aum arg3, na arg4)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, MobSpawnType arg2, SpawnGroupData arg3, CompoundTag arg4)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3, class_2487 arg4)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3, NbtCompound arg4)
m_6518_(C_1618_ p_29534_, C_469_ p_29535_, C_529_ p_29536_, C_542_ p_29537_, C_4917_ arg4)
prepare(WorldAccess arg0, DifficultyDamageScaler arg1, EnumMobSpawn arg2, GroupDataEntity arg3, NBTTagCompound arg4)