net.minecraft.world.entity.monster.hoglin

public class Hoglin

extends Animal implements Enemy, HoglinBase

All mapped superinterfaces:

Nameable, EntityAccess, CommandSource, ScoreHolder, Attackable, Targeting, Enemy, HoglinBase

cds
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
MAX_HEALTH
f_149892_
private static final float
bZ
MOVEMENT_SPEED_WHEN_FIGHTING
field_30527
MOVEMENT_SPEED
f_149893_
private static final int
ca
ATTACK_KNOCKBACK
field_30528
ATTACK_KNOCKBACK
f_149894_
private static final float
cb
KNOCKBACK_RESISTANCE
field_30529
KNOCKBACK_RESISTANCE
f_149895_
private static final int
cc
ATTACK_DAMAGE
field_30530
ATTACK_DAMAGE
f_149896_
private static final float
cd
BABY_ATTACK_DAMAGE
field_30531
BABY_ATTACK_DAMAGE
f_149897_
private static final int
ce
CONVERSION_TIME
field_30532
CONVERSION_TIME
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(cfi arg0)
canBeLeashed(Player arg0)
method_5931(class_1657 arg0)
canBeLeashedBy(PlayerEntity arg0)
m_6573_(C_1141_ arg0)
public static AttributeSupplier$Builder
u()
createAttributes()
method_26943()
createHoglinAttributes()
m_34551_()
public boolean
C(blv arg0)
doHurtTarget(Entity arg0)
method_6121(class_1297 arg0)
tryAttack(Entity arg0)
m_7327_(C_507_ arg0)
protected void
e(bml arg0)
blockedByShield(LivingEntity arg0)
method_6060(class_1309 arg0)
knockback(LivingEntity arg0)
m_6731_(C_524_ arg0)
public boolean
a(bkt 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>
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_()
protected void
Z()
customServerAiStep()
method_5958()
mobTick()
m_8024_()
public void
d_()
aiStep()
method_6007()
tickMovement()
m_8107_()
protected void
m()
ageBoundaryReached()
method_5619()
onGrowUp()
m_30232_()
public static boolean
c(blz<cds> arg0, ctq arg1, bmp arg2, hx arg3, auv arg4)
checkHoglinSpawnRules(EntityType<Hoglin> arg0, LevelAccessor arg1, MobSpawnType arg2, BlockPos arg3, RandomSource arg4)
method_24349(class_1299<class_4760> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<HoglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
m_219181_(C_513_<C_1097_> p_219182_, C_1598_ p_219183_, C_529_ p_219184_, C_4675_ p_219185_, C_212974_ p_219186_)
public SpawnGroupData
a(cue arg0, bjz arg1, bmp arg2, bne arg3, sn 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(hx arg0, cts 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)
protected org.joml.Vector3f
a(blv arg0, blw arg1, float arg2)
getPassengerAttachmentPoint(Entity arg0, EntityDimensions arg1, float arg2)
method_52533(class_1297 arg0, class_4048 arg1, float arg2)
getPassengerAttachmentPos(Entity arg0, EntityDimensions arg1, float arg2)
m_292594_(C_507_ p_298338_, C_510_ p_300779_, float arg2)
public InteractionResult
b(cfi arg0, bka 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
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
m_7822_(byte arg0)
public int
ge()
getAttackAnimationRemainingTicks()
method_24657()
getMovementCooldownTicks()
m_7575_()
public boolean
ec()
shouldDropExperience()
method_6054()
shouldDropXp()
m_6149_()
public int
ee()
getExperienceReward()
method_6110()
getXpToDrop()
m_213860_()
private void
c(and arg0)
finishConversion(ServerLevel arg0)
method_26942(class_3218 arg0)
zombify(ServerWorld word)
m_34531_(C_12_ arg0)
public boolean
m(cmy arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
m_6898_(C_1391_ arg0)
public boolean
w()
isAdult()
method_24658()
isAdult()
m_34552_()
protected void
c_()
defineSynchedData()
method_5693()
initDataTracker()
m_8097_()
public void
b(sn arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(sn arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public void
w(boolean arg0)
setImmuneToZombification(boolean arg0)
method_26948(boolean arg0)
setImmuneToZombification(boolean immuneToZombification)
m_34564_(boolean arg0)
private boolean
gl()
isImmuneToZombification()
method_26946()
isImmuneToZombification()
m_34557_()
public boolean
A()
isConverting()
method_26944()
canConvert()
m_34554_()
private void
x(boolean arg0)
setCannotBeHunted(boolean arg0)
method_26949(boolean arg0)
setCannotBeHunted(boolean cannotBeHunted)
m_34566_(boolean arg0)
public boolean
gk()
canBeHunted()
method_26945()
canBeHunted()
m_34555_()
public AgeableMob
a(and arg0, blq 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
gf()
canFallInLove()
method_6482()
canEat()
m_5957_()
public SoundSource
db()
getSoundSource()
method_5634()
getSoundCategory()
m_5720_()
protected SoundEvent
y()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
protected SoundEvent
d(bkt 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 SoundEvent
aN()
getSwimSound()
method_5737()
getSwimSound()
m_5501_()
protected SoundEvent
aO()
getSwimSplashSound()
method_5625()
getSplashSound()
m_5509_()
protected void
b(hx arg0, djh 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
b(arr arg0)
playSoundEvent(SoundEvent arg0)
method_30081(class_3414 arg0)
playSound(SoundEvent sound)
m_219179_(C_123_ arg0)
protected void
Y()
sendDebugPackets()
method_18409()
sendAiDebugData()
m_8025_()