net.minecraft.entity.mob

public class ZoglinEntity

extends HostileEntity implements Hoglin

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, 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 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
protected static final com.google.common.collect.ImmutableList<? extends SensorType<? extends Sensor<? super ZoglinEntity>>>
SENSOR_TYPES
field_23731
USED_SENSORS
protected static final com.google.common.collect.ImmutableList<? extends MemoryModuleType<?>>
MEMORY_TYPES
field_23733
USED_MEMORY_MODULES

Constructor summary

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

Method summary

Modifier and TypeMethod
protected Brain$Profile<ZoglinEntity>
brainProvider()
method_28306()
createBrainProfile()
protected Brain<?>
makeBrain(com.mojang.serialization.Dynamic<?> input)
method_18867(com.mojang.serialization.Dynamic<?> arg0)
deserializeBrain(com.mojang.serialization.Dynamic<?> arg0)
private static void
initCoreActivity(Brain<Zoglin> brain)
method_26928(class_4095<class_5136> arg0)
addCoreTasks(Brain<ZoglinEntity> brain)
private static void
initIdleActivity(Brain<Zoglin> brain)
method_26929(class_4095<class_5136> arg0)
addIdleTasks(Brain<ZoglinEntity> brain)
private static void
initFightActivity(Brain<Zoglin> brain)
method_26930(class_4095<class_5136> arg0)
addFightTasks(Brain<ZoglinEntity> brain)
private Optional<? extends LivingEntity>
findNearestValidAttackTarget(ServerLevel level)
method_26934(class_3218 arg0)
getHoglinTarget(ServerWorld world)
private boolean
isTargetable(ServerLevel level, LivingEntity livingEntity)
method_26936(class_3218 arg0, class_1309 arg1)
shouldAttack(ServerWorld world, LivingEntity target)
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)
method_6060(class_1309 arg0)
knockback(LivingEntity arg0)
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 boolean
lambda$findNearestValidAttackTarget$1(ServerLevel arg0, LivingEntity arg1)
method_64469(class_3218 arg0, class_1309 arg1)
method_64469(ServerWorld arg0, LivingEntity target)
private static Optional
lambda$initIdleActivity$0(ServerLevel arg0, Zoglin arg1)
method_64468(class_3218 arg0, class_5136 arg1)
method_64468(ServerWorld world, ZoglinEntity target)