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

cng
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>
cc
DATA_IMMUNE_TO_ZOMBIFICATION
field_23737
BABY
private static final int
cd
MAX_HEALTH
field_30526
MAX_HEALTH
private static final float
ce
MOVEMENT_SPEED_WHEN_FIGHTING
field_30527
MOVEMENT_SPEED
private static final int
cf
ATTACK_KNOCKBACK
field_30528
ATTACK_KNOCKBACK
private static final float
cg
KNOCKBACK_RESISTANCE
field_30529
KNOCKBACK_RESISTANCE
private static final int
ch
ATTACK_DAMAGE
field_30530
ATTACK_DAMAGE
private static final float
ci
BABY_ATTACK_DAMAGE
field_30531
BABY_ATTACK_DAMAGE
public static final int
bY
CONVERSION_TIME
field_30532
CONVERSION_TIME
private int
cj
attackAnimationRemainingTicks
field_22368
movementCooldownTicks
private int
ck
timeInOverworld
field_23735
timeInOverworld
private boolean
cl
cannotBeHunted
field_23736
cannotBeHunted
protected static final com.google.common.collect.ImmutableList<? extends SensorType<? extends Sensor<? super Hoglin>>>
bZ
SENSOR_TYPES
field_22365
SENSOR_TYPES
protected static final com.google.common.collect.ImmutableList<? extends MemoryModuleType<?>>
ca
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(ard arg0, bum arg1)
doHurtTarget(ServerLevel arg0, Entity arg1)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
protected void
e(bvi arg0)
blockedByShield(LivingEntity arg0)
method_6060(class_1309 arg0)
knockback(LivingEntity arg0)
public boolean
a(ard arg0, btc 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(ard 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(but<cng> arg0, dgk arg1, bus arg2, ji arg3, azh 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(dha arg0, bsj arg1, bus arg2, bwb 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(ji arg0, dgm arg1)
getWalkTargetValue(BlockPos arg0, LevelReader arg1)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
public InteractionResult
b(coy arg0, bsk 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
em()
shouldDropExperience()
method_6054()
shouldDropExperience()
protected int
e(ard arg0)
getBaseExperienceReward(ServerLevel arg0)
method_6110(class_3218 arg0)
getExperienceToDrop(ServerWorld arg0)
private void
gu()
finishConversion()
method_26942()
zombify()
public boolean
j(cwq arg0)
isFood(ItemStack arg0)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public boolean
t()
isAdult()
method_24658()
isAdult()
protected void
a(akc$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
b(tq arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tq 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
gv()
isImmuneToZombification()
method_26946()
isImmuneToZombification()
public boolean
gs()
isConverting()
method_26944()
canConvert()
private void
y(boolean arg0)
setCannotBeHunted(boolean arg0)
method_26949(boolean arg0)
setCannotBeHunted(boolean cannotBeHunted)
public boolean
gt()
canBeHunted()
method_26945()
canBeHunted()
public AgeableMob
a(ard arg0, bud arg1)
getBreedOffspring(ServerLevel arg0, AgeableMob arg1)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public boolean
gz()
canFallInLove()
method_6482()
canEat()
public SoundSource
dm()
getSoundSource()
method_5634()
getSoundCategory()
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
e(btc 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(ji arg0, dwy arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
protected void
ac()
sendDebugPackets()
method_18409()
sendAiDebugData()
public LivingEntity
O_()
getTarget()
method_5968()
getTarget()