net.minecraft.entity.mob

public class ZoglinEntity

extends HostileEntity implements 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.Zoglin
net.minecraft.class_5136
net.minecraft.entity.mob.ZoglinEntity

Field summary

Modifier and TypeField
private static final TrackedData<Boolean>
DATA_BABY_ID
field_23734
BABY
private static final EntityDimensions
BABY_DIMENSIONS
field_1_6055
field_1_6055
private static final int
MAX_HEALTH
field_30514
field_30514
private static final int
ATTACK_KNOCKBACK
field_30505
field_30505
private static final float
KNOCKBACK_RESISTANCE
field_30506
DEFAULT_KNOCKBACK_RESISTANCE
private static final int
ATTACK_DAMAGE
field_30507
DEFAULT_ATTACK_DAMAGE
private static final float
BABY_ATTACK_DAMAGE
field_30508
BABY_ATTACK_DAMAGE
private static final int
ATTACK_INTERVAL
field_30509
ADULT_MELEE_ATTACK_COOLDOWN
private static final int
BABY_ATTACK_INTERVAL
field_30510
BABY_MELEE_ATTACK_COOLDOWN
private static final int
ATTACK_DURATION
field_30511
ATTACK_TARGET_DURATION
private static final float
MOVEMENT_SPEED_WHEN_FIGHTING
field_30512
DEFAULT_MOVEMENT_SPEED
private static final float
SPEED_MULTIPLIER_WHEN_IDLING
field_30513
field_30513
private static final boolean
DEFAULT_BABY
field_57695
DEFAULT_IS_BABY
private int
attackAnimationRemainingTicks
field_23732
movementCooldownTicks
private static final Brain$Profile<ZoglinEntity>
BRAIN_PROVIDER
field_1_1157
PROFILE

Constructor summary

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

Method summary

Modifier and TypeMethod
protected Brain<ZoglinEntity>
makeBrain(Brain$Packed packedBrain)
method_18867(class_4095$class_1_142 arg0)
deserializeBrain(Brain$State arg0)
protected static List<TaskList<ZoglinEntity>>
getActivities()
method_1_1167()
getTaskLists()
private static TaskList<ZoglinEntity>
initCoreActivity()
method_26928()
getCoreTasks()
private static TaskList<ZoglinEntity>
initIdleActivity()
method_26929()
getIdleTasks()
public EntityDimensions
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
private static TaskList<ZoglinEntity>
initFightActivity()
method_26930()
getFightTasks()
private static Optional<? extends LivingEntity>
findNearestValidAttackTarget(ServerLevel level, Mob mob)
method_26934(class_3218 arg0, class_1308 arg1)
getHoglinTarget(ServerWorld world, MobEntity entity)
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
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 static DefaultAttributeContainer$Builder
createAttributes()
method_26937()
createZoglinAttributes()
public boolean
isAdult()
method_26939()
isAdult()
public boolean
doHurtTarget(ServerLevel level, Entity target)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
public boolean
canBeLeashed()
method_5931()
canBeLeashed()
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)
private void
setAttackTarget(LivingEntity target)
method_26938(class_1309 arg0)
setAttackTarget(LivingEntity entity)
public Brain<ZoglinEntity>
getBrain()
method_18868()
getBrain()
protected void
updateActivity()
method_26931()
tickBrain()
protected void
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public void
setBaby(boolean baby)
method_7217(boolean arg0)
setBaby(boolean arg0)
public boolean
isBaby()
method_6109()
isBaby()
public void
aiStep()
method_6007()
tickMovement()
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
public int
getAttackAnimationRemainingTicks()
method_24657()
getMovementCooldownTicks()
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 void
playStepSound(BlockPos pos, BlockState blockState)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
protected void
playAngrySound()
method_26933()
playAngrySound()
public LivingEntity
getTarget()
method_5968()
getTarget()
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)
private static boolean
lambda$findNearestValidAttackTarget$0(ServerLevel arg0, Mob arg1, LivingEntity arg2)
method_1_1168(class_3218 arg0, class_1308 arg1, class_1309 arg2)
method_1_1168(ServerWorld arg0, MobEntity arg1, LivingEntity candidate)
private static List
lambda$static$0(Zoglin arg0)
method_1_1281(class_5136 arg0)
method_1_1281(ZoglinEntity zoglin)