net.minecraft.world.entity.monster.hoglin

public class Hoglin

extends Animal implements Enemy, HoglinBase

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource, Enemy, HoglinBase

biu
net.minecraft.world.entity.monster.hoglin.Hoglin
net.minecraft.class_4760
net.minecraft.entity.mob.HoglinEntity
net.minecraft.src.C_1097_
net.minecraft.world.entity.monster.hoglin.EntityHoglin

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Boolean>
bW
DATA_IMMUNE_TO_ZOMBIFICATION
field_23737
BABY
f_34482_
private static final float
bX
PROBABILITY_OF_SPAWNING_AS_BABY
field_30525
field_30525
f_149891_
private static final int
bY
MAX_HEALTH
field_30526
field_30526
f_149892_
private static final float
bZ
MOVEMENT_SPEED_WHEN_FIGHTING
field_30527
field_30527
f_149893_
private static final int
ca
ATTACK_KNOCKBACK
field_30528
field_30528
f_149894_
private static final float
cb
KNOCKBACK_RESISTANCE
field_30529
field_30529
f_149895_
private static final int
cc
ATTACK_DAMAGE
field_30530
field_30530
f_149896_
private static final float
cd
BABY_ATTACK_DAMAGE
field_30531
field_30531
f_149897_
private static final int
ce
CONVERSION_TIME
field_30532
field_30532
f_149898_
private int
cf
attackAnimationRemainingTicks
field_22368
movementCooldownTicks
f_34483_
private int
cg
timeInOverworld
field_23735
timeInOverworld
f_34484_
private boolean
ch
cannotBeHunted
field_23736
cannotBeHunted
f_34485_
protected static final com.google.common.collect.ImmutableList<? extends SensorType<? extends Sensor<? super Hoglin>>>
bT
SENSOR_TYPES
field_22365
SENSOR_TYPES
f_34480_
protected static final com.google.common.collect.ImmutableList<? extends MemoryModuleType<?>>
bU
MEMORY_TYPES
field_22366
MEMORY_MODULE_TYPES
f_34481_

Constructor summary

ModifierConstructor
public (EntityType<? extends Hoglin> p_34489_, Level arg1)

Method summary

Modifier and TypeMethod
public boolean
a(bke arg0)
canBeLeashed(Player arg0)
method_5931(class_1657 arg0)
canBeLeashedBy(PlayerEntity arg0)
m_6573_(C_1141_ arg0)
public static AttributeSupplier$Builder
p()
createAttributes()
method_26943()
createHoglinAttributes()
m_34551_()
public boolean
z(atg arg0)
doHurtTarget(Entity arg0)
method_6121(class_1297 arg0)
tryAttack(Entity arg0)
m_7327_(C_507_ arg0)
attackEntity(Entity arg0)
protected void
e(atu arg0)
blockedByShield(LivingEntity arg0)
method_6060(class_1309 arg0)
knockback(LivingEntity arg0)
m_6731_(C_524_ arg0)
public boolean
a(asq 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_34504_, float arg1)
damageEntity(DamageSource arg0, float arg1)
protected Brain$Provider<Hoglin>
dp()
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<Hoglin>
do()
getBrain()
method_18868()
getBrain()
m_6274_()
getBehaviorController()
protected void
eY()
customServerAiStep()
method_5958()
mobTick()
m_8024_()
mobTick()
public void
u_()
aiStep()
method_6007()
tickMovement()
m_8107_()
movementTick()
protected void
n()
ageBoundaryReached()
method_5619()
onGrowUp()
m_142669_()
public static boolean
c(atk<biu> arg0, bwr arg1, aty arg2, gg arg3, Random arg4)
checkHoglinSpawnRules(EntityType<Hoglin> arg0, LevelAccessor arg1, MobSpawnType arg2, BlockPos arg3, Random arg4)
method_24349(class_1299<class_4760> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, Random arg4)
canSpawn(EntityType<HoglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random arg4)
m_34533_(C_513_<C_1097_> p_34534_, C_1598_ p_34535_, C_529_ p_34536_, C_4675_ p_34537_, Random p_34538_)
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_34509_, C_469_ p_34510_, C_529_ p_34511_, C_542_ p_34512_, C_4917_ arg4)
prepare(WorldAccess arg0, DifficultyDamageScaler arg1, EnumMobSpawn arg2, GroupDataEntity arg3, NBTTagCompound arg4)
public boolean
h(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
m_6785_(double arg0)
isTypeNotPersistent(double arg0)
public float
a(gg arg0, bwt arg1)
getWalkTargetValue(BlockPos arg0, LevelReader arg1)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
m_5610_(C_4675_ p_34517_, C_1599_ arg1)
public double
bl()
getPassengersRidingOffset()
method_5621()
getMountedHeightOffset()
m_6048_()
public InteractionResult
b(bke arg0, asa arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
m_6071_(C_1141_ p_34524_, C_470_ arg1)
public void
a(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
m_7822_(byte arg0)
public int
fw()
getAttackAnimationRemainingTicks()
method_24657()
getMovementCooldownTicks()
m_7575_()
protected boolean
dC()
shouldDropExperience()
method_6054()
shouldDropXp()
m_6149_()
isDropExperience()
protected int
d(bke arg0)
getExperienceReward(Player arg0)
method_6110(class_1657 arg0)
getXpToDrop(PlayerEntity arg0)
m_6552_(C_1141_ arg0)
getExpValue(EntityHuman arg0)
private void
c(abr arg0)
finishConversion(ServerLevel arg0)
method_26942(class_3218 arg0)
zombify(ServerWorld word)
m_34531_(C_12_ arg0)
public boolean
n(bqq arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
isBreedItem(ItemStack arg0)
public boolean
t()
isAdult()
method_24658()
isAdult()
m_34552_()
protected void
a_()
defineSynchedData()
method_5693()
initDataTracker()
m_8097_()
initDatawatcher()
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
a(na arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
loadData(NBTTagCompound arg0)
public void
v(boolean arg0)
setImmuneToZombification(boolean arg0)
method_26948(boolean arg0)
setImmuneToZombification(boolean immuneToZombification)
m_34564_(boolean arg0)
setImmuneToZombification(boolean arg0)
private boolean
fE()
isImmuneToZombification()
method_26946()
isImmuneToZombification()
m_34557_()
isImmuneToZombification()
public boolean
fx()
isConverting()
method_26944()
canConvert()
m_34554_()
isConverting()
private void
w(boolean arg0)
setCannotBeHunted(boolean arg0)
method_26949(boolean arg0)
setCannotBeHunted(boolean cannotBeHunted)
m_34566_(boolean arg0)
public boolean
fy()
canBeHunted()
method_26945()
canBeHunted()
m_34555_()
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_149901_, C_141062_ arg1)
createChild(WorldServer arg0, EntityAgeable arg1)
public boolean
fz()
canFallInLove()
method_6482()
canEat()
m_5957_()
public SoundSource
cJ()
getSoundSource()
method_5634()
getSoundCategory()
m_5720_()
getSoundCategory()
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 SoundEvent
aA()
getSwimSound()
method_5737()
getSwimSound()
m_5501_()
getSoundSwim()
protected SoundEvent
aB()
getSwimSplashSound()
method_5625()
getSplashSound()
m_5509_()
getSoundSplash()
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_34527_, C_2064_ arg1)
protected void
a(afd arg0)
playSound(SoundEvent arg0)
method_30081(class_3414 arg0)
playSound(SoundEvent sound)
m_34500_(C_123_ arg0)
protected void
R()
sendDebugPackets()
method_18409()
sendAiDebugData()
m_8025_()