net.minecraft.world.entity.monster.hoglin

public class Hoglin

extends Animal implements Enemy, HoglinBase

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter, Attackable, EquipmentUser, Leashable, Targeting, Enemy, HoglinBase

cor
net.minecraft.world.entity.monster.hoglin.Hoglin
net.minecraft.class_4760
net.minecraft.entity.mob.HoglinEntity

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Boolean>
bI
DATA_IMMUNE_TO_ZOMBIFICATION
field_23737
BABY
private static final int
bJ
MAX_HEALTH
field_30526
MAX_HEALTH
private static final float
bK
MOVEMENT_SPEED_WHEN_FIGHTING
field_30527
MOVEMENT_SPEED
private static final int
bL
ATTACK_KNOCKBACK
field_30528
ATTACK_KNOCKBACK
private static final float
bM
KNOCKBACK_RESISTANCE
field_30529
KNOCKBACK_RESISTANCE
private static final int
bN
ATTACK_DAMAGE
field_30530
ATTACK_DAMAGE
private static final float
bO
BABY_ATTACK_DAMAGE
field_30531
BABY_ATTACK_DAMAGE
public static final int
bE
CONVERSION_TIME
field_30532
CONVERSION_TIME
private int
bP
attackAnimationRemainingTicks
field_22368
movementCooldownTicks
private int
bQ
timeInOverworld
field_23735
timeInOverworld
private boolean
bR
cannotBeHunted
field_23736
cannotBeHunted
protected static final com.google.common.collect.ImmutableList<? extends SensorType<? extends Sensor<? super Hoglin>>>
bF
SENSOR_TYPES
field_22365
SENSOR_TYPES
protected static final com.google.common.collect.ImmutableList<? extends MemoryModuleType<?>>
bG
MEMORY_TYPES
field_22366
MEMORY_MODULE_TYPES

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
s(int arg0)
setTimeInOverworld(int arg0)
method_63662(int arg0)
setTimeInOverworld(int timeInOverworld)
public boolean
w()
canBeLeashed()
method_5931()
canBeLeashed()
public static AttributeSupplier$Builder
t()
createAttributes()
method_26943()
createHoglinAttributes()
public boolean
c(arn arg0, bvs arg1)
doHurtTarget(ServerLevel arg0, Entity arg1)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
protected void
e(bwr arg0)
blockedByShield(LivingEntity arg0)
method_6060(class_1309 arg0)
knockback(LivingEntity arg0)
public boolean
a(arn arg0, buh arg1, float arg2)
hurtServer(ServerLevel arg0, DamageSource arg1, float arg2)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
protected Brain$Provider<Hoglin>
ec()
brainProvider()
method_28306()
createBrainProfile()
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)
public Brain<Hoglin>
eb()
getBrain()
method_18868()
getBrain()
protected void
a(arn arg0)
customServerAiStep(ServerLevel arg0)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public void
k_()
aiStep()
method_6007()
tickMovement()
protected void
j()
ageBoundaryReached()
method_5619()
onGrowUp()
public static boolean
c(bwb<cor> arg0, dhq arg1, bwa arg2, jj arg3, azs arg4)
checkHoglinSpawnRules(EntityType<Hoglin> arg0, LevelAccessor arg1, EntitySpawnReason 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)
public SpawnGroupData
a(dig arg0, bto arg1, bwa arg2, bxj 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)
public boolean
h(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
public float
a(jj arg0, dhs arg1)
getWalkTargetValue(BlockPos arg0, LevelReader arg1)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
public InteractionResult
b(cqi arg0, btp arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
public int
q()
getAttackAnimationRemainingTicks()
method_24657()
getMovementCooldownTicks()
public boolean
en()
shouldDropExperience()
method_6054()
shouldDropExperience()
protected int
e(arn arg0)
getBaseExperienceReward(ServerLevel arg0)
method_6110(class_3218 arg0)
getExperienceToDrop(ServerWorld arg0)
private void
gs()
finishConversion()
method_26942()
zombify()
public boolean
k(cxy arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public boolean
x()
isAdult()
method_24658()
isAdult()
protected void
a(akk$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
b(tw arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tw arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public void
w(boolean arg0)
setImmuneToZombification(boolean arg0)
method_26948(boolean arg0)
setImmuneToZombification(boolean immuneToZombification)
private boolean
gt()
isImmuneToZombification()
method_26946()
isImmuneToZombification()
public boolean
gq()
isConverting()
method_26944()
canConvert()
private void
x(boolean arg0)
setCannotBeHunted(boolean arg0)
method_26949(boolean arg0)
setCannotBeHunted(boolean cannotBeHunted)
public boolean
gr()
canBeHunted()
method_26945()
canBeHunted()
public AgeableMob
a(arn arg0, bvi arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public boolean
gx()
canFallInLove()
method_6482()
canEat()
public SoundSource
dm()
getSoundSource()
method_5634()
getSoundCategory()
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
e(buh arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
l_()
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
aV()
getSwimSound()
method_5737()
getSwimSound()
protected SoundEvent
aW()
getSwimSplashSound()
method_5625()
getSplashSound()
protected void
b(jj arg0, dym arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
protected void
ab()
sendDebugPackets()
method_18409()
sendAiDebugData()
public LivingEntity
f()
getTarget()
method_5968()
getTarget()