net.minecraft.world.entity.monster.hoglin

public class Hoglin

extends Animal implements Enemy, HoglinBase

All mapped superinterfaces:

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

cof
net.minecraft.world.entity.monster.hoglin.Hoglin
net.minecraft.class_4760
net.minecraft.entity.mob.HoglinEntity
net.minecraft.world.entity.monster.hoglin.EntityHoglin

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Boolean>
cd
DATA_IMMUNE_TO_ZOMBIFICATION
field_23737
BABY
private static final int
ce
MAX_HEALTH
field_30526
MAX_HEALTH
private static final float
cf
MOVEMENT_SPEED_WHEN_FIGHTING
field_30527
MOVEMENT_SPEED
private static final int
cg
ATTACK_KNOCKBACK
field_30528
ATTACK_KNOCKBACK
private static final float
ch
KNOCKBACK_RESISTANCE
field_30529
KNOCKBACK_RESISTANCE
private static final int
ci
ATTACK_DAMAGE
field_30530
ATTACK_DAMAGE
private static final float
cj
BABY_ATTACK_DAMAGE
field_30531
BABY_ATTACK_DAMAGE
public static final int
bZ
CONVERSION_TIME
field_30532
CONVERSION_TIME
private int
ck
attackAnimationRemainingTicks
field_22368
movementCooldownTicks
private int
cl
timeInOverworld
field_23735
timeInOverworld
private boolean
cm
cannotBeHunted
field_23736
cannotBeHunted
protected static final com.google.common.collect.ImmutableList<? extends SensorType<? extends Sensor<? super Hoglin>>>
ca
SENSOR_TYPES
field_22365
SENSOR_TYPES
protected static final com.google.common.collect.ImmutableList<? extends MemoryModuleType<?>>
cb
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
y()
canBeLeashed()
method_5931()
canBeLeashed()
public static AttributeSupplier$Builder
p()
createAttributes()
method_26943()
createHoglinAttributes()
public boolean
c(ash arg0, bvk arg1)
doHurtTarget(ServerLevel arg0, Entity arg1)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
protected void
e(bwg arg0)
blockedByShield(LivingEntity arg0)
method_6060(class_1309 arg0)
knockback(LivingEntity arg0)
public boolean
a(ash arg0, bua 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>
ed()
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>
ec()
getBrain()
method_18868()
getBrain()
protected void
a(ash arg0)
customServerAiStep(ServerLevel arg0)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public void
d_()
aiStep()
method_6007()
tickMovement()
protected void
i()
ageBoundaryReached()
method_5619()
onGrowUp()
public static boolean
c(bvr<cof> arg0, dhj arg1, bvq arg2, jh arg3, bam 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(dhz arg0, bth arg1, bvq arg2, bwz 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(jh arg0, dhl arg1)
getWalkTargetValue(BlockPos arg0, LevelReader arg1)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
public InteractionResult
b(cpx arg0, bti 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
x()
getAttackAnimationRemainingTicks()
method_24657()
getMovementCooldownTicks()
public boolean
en()
shouldDropExperience()
method_6054()
shouldDropXp()
protected int
e(ash arg0)
getBaseExperienceReward(ServerLevel arg0)
method_6110(class_3218 arg0)
getXpToDrop(ServerWorld arg0)
private void
gq()
finishConversion()
method_26942()
zombify()
public boolean
j(cxp arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public boolean
t()
isAdult()
method_24658()
isAdult()
protected void
a(alg$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
b(ux arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(ux arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public void
x(boolean arg0)
setImmuneToZombification(boolean arg0)
method_26948(boolean arg0)
setImmuneToZombification(boolean immuneToZombification)
private boolean
gr()
isImmuneToZombification()
method_26946()
isImmuneToZombification()
public boolean
go()
isConverting()
method_26944()
canConvert()
private void
y(boolean arg0)
setCannotBeHunted(boolean arg0)
method_26949(boolean arg0)
setCannotBeHunted(boolean cannotBeHunted)
public boolean
gp()
canBeHunted()
method_26945()
canBeHunted()
public AgeableMob
a(ash arg0, bvb arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public boolean
gv()
canFallInLove()
method_6482()
canEat()
public SoundSource
dn()
getSoundSource()
method_5634()
getSoundCategory()
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
e(bua arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
o_()
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
aV()
getSwimSound()
method_5737()
getSwimSound()
protected SoundEvent
aW()
getSwimSplashSound()
method_5625()
getSplashSound()
protected void
b(jh arg0, dxv arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
protected void
Y()
sendDebugPackets()
method_18409()
sendAiDebugData()
public LivingEntity
O_()
getTarget()
method_5968()
getTarget()