net.minecraft.world.entity.animal

public class PolarBear

extends Animal implements NeutralMob

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, ScoreHolder, Attackable, EquipmentUser, Leashable, Targeting, NeutralMob

cip
net.minecraft.world.entity.animal.PolarBear
net.minecraft.class_1456
net.minecraft.entity.passive.PolarBearEntity
net.minecraft.world.entity.animal.EntityPolarBear

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Boolean>
bZ
DATA_STANDING_ID
field_6840
WARNING
private static final float
ca
STAND_ANIMATION_TICKS
field_30352
field_30352
private float
cb
clientSideStandAnimationO
field_6838
lastWarningAnimationProgress
private float
cd
clientSideStandAnimation
field_6837
warningAnimationProgress
private int
ce
warningSoundTicks
field_6839
warningSoundCooldown
private static final UniformInt
cf
PERSISTENT_ANGER_TIME
field_25369
ANGER_TIME_RANGE
private int
cg
remainingPersistentAngerTime
field_25370
angerTime
private UUID
ch
persistentAngerTarget
field_25368
angryAt

Constructor summary

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

Method summary

Modifier and TypeMethod
public AgeableMob
a(ash arg0, bvb arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public boolean
j(cxp arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
protected void
B()
registerGoals()
method_5959()
initGoals()
public static AttributeSupplier$Builder
p()
createAttributes()
method_26891()
createPolarBearAttributes()
public static boolean
c(bvr<cip> arg0, dhj arg1, bvq arg2, jh arg3, bam arg4)
checkPolarBearSpawnRules(EntityType<PolarBear> arg0, LevelAccessor arg1, EntitySpawnReason arg2, BlockPos arg3, RandomSource arg4)
method_20668(class_1299<class_1456> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<PolarBearEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
public void
a(ux arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
c()
startPersistentAngerTimer()
method_29509()
chooseRandomAngerTime()
public void
a(int arg0)
setRemainingPersistentAngerTime(int arg0)
method_29514(int arg0)
setAngerTime(int arg0)
public int
a()
getRemainingPersistentAngerTime()
method_29507()
getAngerTime()
public void
a(UUID arg0)
setPersistentAngerTarget(UUID arg0)
method_29513(UUID arg0)
setAngryAt(UUID arg0)
public UUID
b()
getPersistentAngerTarget()
method_29508()
getAngryAt()
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
e(bua arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
o_()
getDeathSound()
method_6002()
getDeathSound()
protected void
b(jh arg0, dxv arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
protected void
t()
playWarningSound()
method_6602()
playWarningSound()
protected void
a(alg$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
h()
tick()
method_5773()
tick()
public EntityDimensions
e(bws arg0)
getDefaultDimensions(Pose arg0)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
public boolean
x()
isStanding()
method_6600()
isWarning()
public void
x(boolean arg0)
setStanding(boolean arg0)
method_6603(boolean arg0)
setWarning(boolean warning)
public float
J(float arg0)
getStandingAnimationScale(float arg0)
method_6601(float arg0)
getWarningAnimationProgress(float tickDelta)
protected float
fm()
getWaterSlowDown()
method_6120()
getBaseMovementSpeedMultiplier()
public SpawnGroupData
a(dhz arg0, bth arg1, bvq arg2, bwz arg3)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, EntitySpawnReason arg2, SpawnGroupData arg3)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)