net.minecraft.entity.mob

public class HoglinEntity

extends AnimalEntity implements Monster, Hoglin

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable, Monster, Hoglin

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

Field summary

Modifier and TypeField
private static final TrackedData<Boolean>
DATA_IMMUNE_TO_ZOMBIFICATION
field_23737
BABY
private static final EntityDimensions
BABY_DIMENSIONS
field_1_6090
field_1_6090
private static final int
MAX_HEALTH
field_30526
MAX_HEALTH
private static final float
MOVEMENT_SPEED_WHEN_FIGHTING
field_30527
MOVEMENT_SPEED
private static final int
ATTACK_KNOCKBACK
field_30528
ATTACK_KNOCKBACK
private static final float
KNOCKBACK_RESISTANCE
field_30529
KNOCKBACK_RESISTANCE
private static final int
ATTACK_DAMAGE
field_30530
ATTACK_DAMAGE
private static final float
BABY_ATTACK_DAMAGE
field_30531
BABY_ATTACK_DAMAGE
private static final boolean
DEFAULT_IMMUNE_TO_ZOMBIFICATION
field_57702
DEFAULT_IS_IMMUNE_TO_ZOMBIFICATION
private static final int
DEFAULT_TIME_IN_OVERWORLD
field_57703
DEFAULT_TIME_IN_OVERWORLD
private static final boolean
DEFAULT_CANNOT_BE_HUNTED
field_57704
DEFAULT_CANNOT_BE_HUNTED
public static final int
CONVERSION_TIME
field_30532
CONVERSION_TIME
private int
attackAnimationRemainingTicks
field_22368
movementCooldownTicks
private int
timeInOverworld
field_23735
timeInOverworld
private boolean
cannotBeHunted
field_23736
cannotBeHunted
private static final Brain$Profile<HoglinEntity>
BRAIN_PROVIDER
field_1_1194
PROFILE

Constructor summary

ModifierConstructor
public (EntityType<? extends HoglinEntity> type, World level)

Method summary

Modifier and TypeMethod
public void
setTimeInOverworld(int timeInOverworld)
method_63662(int arg0)
setTimeInOverworld(int timeInOverworld)
public boolean
canBeLeashed()
method_5931()
canBeLeashed()
public static DefaultAttributeContainer$Builder
createAttributes()
method_26943()
createHoglinAttributes()
public boolean
doHurtTarget(ServerLevel level, Entity target)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
protected void
blockedByItem(LivingEntity defender, DamageSource source, float damage)
method_6060(class_1309 arg0, class_1282 arg1, float arg2)
knockback(LivingEntity arg0, DamageSource arg1, float arg2)
public boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
protected Brain<HoglinEntity>
makeBrain(Brain$Packed packedBrain)
method_18867(class_4095$class_1_142 arg0)
deserializeBrain(Brain$State arg0)
public Brain<HoglinEntity>
getBrain()
method_18868()
getBrain()
protected void
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public void
aiStep()
method_6007()
tickMovement()
public EntityDimensions
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
protected void
ageBoundaryReached()
method_5619()
onGrowUp()
public static boolean
checkHoglinSpawnRules(EntityType<Hoglin> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
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 EntityData
finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, SpawnGroupData groupData)
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
removeWhenFarAway(double distSqr)
method_5974(double arg0)
canImmediatelyDespawn(double arg0)
public float
getWalkTargetValue(BlockPos pos, LevelReader level)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
public ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
public int
getAttackAnimationRemainingTicks()
method_24657()
getMovementCooldownTicks()
public boolean
shouldDropExperience()
method_6054()
shouldDropExperience()
protected int
getBaseExperienceReward(ServerLevel level)
method_6110(class_3218 arg0)
getExperienceToDrop(ServerWorld arg0)
private void
finishConversion()
method_26942()
zombify()
public boolean
isFood(ItemStack itemStack)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public boolean
isAdult()
method_24658()
isAdult()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public void
setImmuneToZombification(boolean isImmuneToZombification)
method_26948(boolean arg0)
setImmuneToZombification(boolean immuneToZombification)
private boolean
isImmuneToZombification()
method_26946()
isImmuneToZombification()
public boolean
isConverting()
method_26944()
canConvert()
private void
setCannotBeHunted(boolean cannotBeHunted)
method_26949(boolean arg0)
setCannotBeHunted(boolean cannotBeHunted)
public boolean
canBeHunted()
method_26945()
canBeHunted()
public PassiveEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public boolean
canFallInLove()
method_6482()
canEat()
public SoundCategory
getSoundSource()
method_5634()
getSoundCategory()
protected SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
getSwimSound()
method_5737()
getSwimSound()
protected SoundEvent
getSwimSplashSound()
method_5625()
getSplashSound()
protected void
playStepSound(BlockPos pos, BlockState blockState)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
public LivingEntity
getTarget()
method_5968()
getTarget()
private static void
lambda$finishConversion$0(Zoglin arg0)
method_63661(class_5136 arg0)
method_63661(ZoglinEntity zoglin)
private static List
lambda$static$0(Hoglin arg0)
method_1_1400(class_4760 arg0)
method_1_1400(HoglinEntity hoglin)