net.minecraft.world.entity.monster.hoglin

public class Hoglin

extends Animal implements Enemy, HoglinBase

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource, Enemy, HoglinBase

bmh
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>
bZ
DATA_IMMUNE_TO_ZOMBIFICATION
field_23737
BABY
f_34482_
private static final float
ca
PROBABILITY_OF_SPAWNING_AS_BABY
field_30525
field_30525
f_149891_
private static final int
cb
MAX_HEALTH
field_30526
field_30526
f_149892_
private static final float
cc
MOVEMENT_SPEED_WHEN_FIGHTING
field_30527
field_30527
f_149893_
private static final int
cd
ATTACK_KNOCKBACK
field_30528
field_30528
f_149894_
private static final float
ce
KNOCKBACK_RESISTANCE
field_30529
field_30529
f_149895_
private static final int
cf
ATTACK_DAMAGE
field_30530
field_30530
f_149896_
private static final float
cg
BABY_ATTACK_DAMAGE
field_30531
field_30531
f_149897_
private static final int
ch
CONVERSION_TIME
field_30532
field_30532
f_149898_
private int
ci
attackAnimationRemainingTicks
field_22368
movementCooldownTicks
f_34483_
private int
cj
timeInOverworld
field_23735
timeInOverworld
f_34484_
private boolean
ck
cannotBeHunted
field_23736
cannotBeHunted
f_34485_
protected static final com.google.common.collect.ImmutableList<? extends SensorType<? extends Sensor<? super Hoglin>>>
bW
SENSOR_TYPES
field_22365
SENSOR_TYPES
f_34480_
protected static final com.google.common.collect.ImmutableList<? extends MemoryModuleType<?>>
bX
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(bnr arg0)
canBeLeashed(Player arg0)
method_5931(class_1657 arg0)
canBeLeashedBy(PlayerEntity arg0)
m_6573_(C_1141_ arg0)
public static AttributeSupplier$Builder
q()
createAttributes()
method_26943()
createHoglinAttributes()
m_34551_()
public boolean
z(awt arg0)
doHurtTarget(Entity arg0)
method_6121(class_1297 arg0)
tryAttack(Entity arg0)
m_7327_(C_507_ arg0)
protected void
e(axh arg0)
blockedByShield(LivingEntity arg0)
method_6060(class_1309 arg0)
knockback(LivingEntity arg0)
m_6731_(C_524_ arg0)
public boolean
a(awd 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)
protected Brain$Provider<Hoglin>
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<Hoglin>
dt()
getBrain()
method_18868()
getBrain()
m_6274_()
protected void
R()
customServerAiStep()
method_5958()
mobTick()
m_8024_()
public void
w_()
aiStep()
method_6007()
tickMovement()
m_8107_()
protected void
n()
ageBoundaryReached()
method_5619()
onGrowUp()
m_142669_()
public static boolean
c(awx<bmh> arg0, cae arg1, axl arg2, gh 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(cas arg0, avo arg1, axl arg2, axz arg3, oc 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)
public boolean
h(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
m_6785_(double arg0)
public float
a(gh arg0, cag 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
bq()
getPassengersRidingOffset()
method_5621()
getMountedHeightOffset()
m_6048_()
public InteractionResult
b(bnr arg0, avp 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
fy()
getAttackAnimationRemainingTicks()
method_24657()
getMovementCooldownTicks()
m_7575_()
protected boolean
dH()
shouldDropExperience()
method_6054()
shouldDropXp()
m_6149_()
protected int
d(bnr arg0)
getExperienceReward(Player arg0)
method_6110(class_1657 arg0)
getXpToDrop(PlayerEntity arg0)
m_6552_(C_1141_ arg0)
private void
c(adi arg0)
finishConversion(ServerLevel arg0)
method_26942(class_3218 arg0)
zombify(ServerWorld word)
m_34531_(C_12_ arg0)
public boolean
n(bue arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
public boolean
t()
isAdult()
method_24658()
isAdult()
m_34552_()
protected void
a_()
defineSynchedData()
method_5693()
initDataTracker()
m_8097_()
public void
b(oc arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(oc arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public void
v(boolean arg0)
setImmuneToZombification(boolean arg0)
method_26948(boolean arg0)
setImmuneToZombification(boolean immuneToZombification)
m_34564_(boolean arg0)
private boolean
fG()
isImmuneToZombification()
method_26946()
isImmuneToZombification()
m_34557_()
public boolean
fz()
isConverting()
method_26944()
canConvert()
m_34554_()
private void
w(boolean arg0)
setCannotBeHunted(boolean arg0)
method_26949(boolean arg0)
setCannotBeHunted(boolean cannotBeHunted)
m_34566_(boolean arg0)
public boolean
fA()
canBeHunted()
method_26945()
canBeHunted()
m_34555_()
public AgeableMob
a(adi arg0, awr 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)
public boolean
fB()
canFallInLove()
method_6482()
canEat()
m_5957_()
public SoundSource
cO()
getSoundSource()
method_5634()
getSoundCategory()
m_5720_()
protected SoundEvent
r()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
protected SoundEvent
c(awd arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
x_()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
protected SoundEvent
aF()
getSwimSound()
method_5737()
getSwimSound()
m_5501_()
protected SoundEvent
aG()
getSwimSplashSound()
method_5625()
getSplashSound()
m_5509_()
protected void
b(gh arg0, coc 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(agu arg0)
playSound(SoundEvent arg0)
method_30081(class_3414 arg0)
playSound(SoundEvent sound)
m_34500_(C_123_ arg0)
protected void
Q()
sendDebugPackets()
method_18409()
sendAiDebugData()
m_8025_()