net.minecraft.world.entity.monster.hoglin

public class Hoglin

extends Animal implements Enemy, HoglinBase

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, CommandSource, ScoreHolder, Attackable, EquipmentUser, Leashable, Targeting, Enemy, HoglinBase

clh
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>
ce
DATA_IMMUNE_TO_ZOMBIFICATION
field_23737
BABY
f_34482_
private static final float
cg
PROBABILITY_OF_SPAWNING_AS_BABY
field_30525
field_30525
f_149891_
private static final int
ch
MAX_HEALTH
field_30526
MAX_HEALTH
f_149892_
private static final float
ci
MOVEMENT_SPEED_WHEN_FIGHTING
field_30527
MOVEMENT_SPEED
f_149893_
private static final int
cj
ATTACK_KNOCKBACK
field_30528
ATTACK_KNOCKBACK
f_149894_
private static final float
ck
KNOCKBACK_RESISTANCE
field_30529
KNOCKBACK_RESISTANCE
f_149895_
private static final int
cl
ATTACK_DAMAGE
field_30530
ATTACK_DAMAGE
f_149896_
private static final float
cm
BABY_ATTACK_DAMAGE
field_30531
BABY_ATTACK_DAMAGE
f_149897_
private static final int
cn
CONVERSION_TIME
field_30532
CONVERSION_TIME
f_149898_
private int
co
attackAnimationRemainingTicks
field_22368
movementCooldownTicks
f_34483_
private int
cp
timeInOverworld
field_23735
timeInOverworld
f_34484_
private boolean
cq
cannotBeHunted
field_23736
cannotBeHunted
f_34485_
protected static final com.google.common.collect.ImmutableList<? extends SensorType<? extends Sensor<? super Hoglin>>>
cc
SENSOR_TYPES
field_22365
SENSOR_TYPES
f_34480_
protected static final com.google.common.collect.ImmutableList<? extends MemoryModuleType<?>>
cd
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
y()
canBeLeashed()
method_5931()
canBeLeashed()
m_6573_()
public static AttributeSupplier$Builder
s()
createAttributes()
method_26943()
createHoglinAttributes()
m_34551_()
public boolean
D(bsr arg0)
doHurtTarget(Entity arg0)
method_6121(class_1297 arg0)
tryAttack(Entity arg0)
m_7327_(C_507_ arg0)
protected void
e(btn arg0)
blockedByShield(LivingEntity arg0)
method_6060(class_1309 arg0)
knockback(LivingEntity arg0)
m_6731_(C_524_ arg0)
public boolean
a(brk 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
ab()
customServerAiStep()
method_5958()
mobTick()
m_8024_()
public void
m_()
aiStep()
method_6007()
tickMovement()
m_8107_()
protected void
k()
ageBoundaryReached()
method_5619()
onGrowUp()
m_30232_()
public static boolean
c(bsx<clh> arg0, dcx arg1, btr arg2, jd arg3, ayw 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(ddl arg0, bqp arg1, btr arg2, buh arg3)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, MobSpawnType 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)
m_6518_(C_1618_ p_34509_, C_469_ p_34510_, C_529_ p_34511_, C_542_ arg3)
public boolean
h(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
m_6785_(double arg0)
public float
a(jd arg0, dcz 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 InteractionResult
b(cmx arg0, bqq 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
gk()
getAttackAnimationRemainingTicks()
method_24657()
getMovementCooldownTicks()
m_7575_()
public boolean
ee()
shouldDropExperience()
method_6054()
shouldDropXp()
m_6149_()
protected int
eg()
getBaseExperienceReward()
method_6110()
getXpToDrop()
m_213860_()
private void
a(aqu arg0)
finishConversion(ServerLevel arg0)
method_26942(class_3218 arg0)
zombify(ServerWorld word)
m_34531_(C_12_ arg0)
public boolean
o(cuq 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(aka$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
public void
b(ub arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
m_7380_(C_4917_ arg0)
public void
a(ub arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
m_7378_(C_4917_ arg0)
public void
x(boolean arg0)
setImmuneToZombification(boolean arg0)
method_26948(boolean arg0)
setImmuneToZombification(boolean immuneToZombification)
m_34564_(boolean arg0)
private boolean
gm()
isImmuneToZombification()
method_26946()
isImmuneToZombification()
m_34557_()
public boolean
x()
isConverting()
method_26944()
canConvert()
m_34554_()
private void
y(boolean arg0)
setCannotBeHunted(boolean arg0)
method_26949(boolean arg0)
setCannotBeHunted(boolean cannotBeHunted)
m_34566_(boolean arg0)
public boolean
gl()
canBeHunted()
method_26945()
canBeHunted()
m_34555_()
public AgeableMob
a(aqu arg0, bsl 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
gp()
canFallInLove()
method_6482()
canEat()
m_5957_()
public SoundSource
de()
getSoundSource()
method_5634()
getSoundCategory()
m_5720_()
protected SoundEvent
v()
getAmbientSound()
method_5994()
getAmbientSound()
m_7515_()
protected SoundEvent
d(brk 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
aQ()
getSwimSound()
method_5737()
getSwimSound()
m_5501_()
protected SoundEvent
aR()
getSwimSplashSound()
method_5625()
getSplashSound()
m_5509_()
protected void
b(jd arg0, dtc 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
aa()
sendDebugPackets()
method_18409()
sendAiDebugData()
m_8025_()
public LivingEntity
p()
getTarget()
method_5968()
getTarget()
m_5448_()