net.minecraft.world.entity.monster

public class Zombie

extends Monster

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter, Attackable, EquipmentUser, Leashable, Targeting, Enemy

com
net.minecraft.world.entity.monster.Zombie
net.minecraft.class_1642
net.minecraft.entity.mob.ZombieEntity

Field summary

Modifier and TypeField
private static final ResourceLocation
a
SPEED_MODIFIER_BABY_ID
field_7429
BABY_SPEED_MODIFIER_ID
private static final AttributeModifier
b
SPEED_MODIFIER_BABY
field_7430
BABY_SPEED_BONUS
private static final ResourceLocation
c
REINFORCEMENT_CALLER_CHARGE_ID
field_52018
REINFORCEMENT_CALLER_CHARGE_MODIFIER_ID
private static final AttributeModifier
bI
ZOMBIE_REINFORCEMENT_CALLEE_CHARGE
field_52016
REINFORCEMENT_CALLEE_CHARGE_REINFORCEMENT_BONUS
private static final ResourceLocation
bJ
LEADER_ZOMBIE_BONUS_ID
field_52017
LEADER_ZOMBIE_BONUS_MODIFIER_ID
private static final ResourceLocation
bK
ZOMBIE_RANDOM_SPAWN_BONUS_ID
field_52193
ZOMBIE_RANDOM_SPAWN_BONUS_MODIFIER_ID
private static final EntityDataAccessor<Boolean>
bL
DATA_BABY_ID
field_7434
BABY
private static final EntityDataAccessor<Integer>
bM
DATA_SPECIAL_TYPE_ID
field_7427
ZOMBIE_TYPE
private static final EntityDataAccessor<Boolean>
bN
DATA_DROWNED_CONVERSION_ID
field_7425
CONVERTING_IN_WATER
public static final float
d
ZOMBIE_LEADER_CHANCE
field_30519
field_30519
public static final int
bF
REINFORCEMENT_ATTEMPTS
field_30515
field_30515
public static final int
bG
REINFORCEMENT_RANGE_MAX
field_30516
field_30516
public static final int
bH
REINFORCEMENT_RANGE_MIN
field_30517
field_30517
private static final EntityDimensions
bO
BABY_DIMENSIONS
field_47811
BABY_BASE_DIMENSIONS
private static final float
bP
BREAK_DOOR_CHANCE
field_30518
field_30518
private static final Predicate<Difficulty>
bQ
DOOR_BREAKING_PREDICATE
field_19015
DOOR_BREAK_DIFFICULTY_CHECKER
private final BreakDoorGoal
bR
breakDoorGoal
field_7433
breakDoorsGoal
private boolean
bS
canBreakDoors
field_7432
canBreakDoors
private int
bT
inWaterTime
field_7426
inWaterTime
private int
bU
conversionTime
field_7424
ticksUntilWaterConversion

Constructor summary

ModifierConstructor
public (EntityType<? extends Zombie> arg0, Level arg1)
public (Level world)

Method summary

Modifier and TypeMethod
protected void
D()
registerGoals()
method_5959()
initGoals()
protected void
m()
addBehaviourGoals()
method_7208()
initCustomGoals()
public static AttributeSupplier$Builder
gr()
createAttributes()
method_26940()
createZombieAttributes()
protected void
a(akl$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public boolean
gu()
isUnderWaterConverting()
method_7206()
isConvertingInWater()
public boolean
gv()
canBreakDoors()
method_7211()
canBreakDoors()
public void
x(boolean arg0)
setCanBreakDoors(boolean arg0)
method_7201(boolean arg0)
setCanBreakDoors(boolean canBreakDoors)
public boolean
n_()
isBaby()
method_6109()
isBaby()
protected int
e(aro arg0)
getBaseExperienceReward(ServerLevel arg0)
method_6110(class_3218 arg0)
getExperienceToDrop(ServerWorld arg0)
public void
a(boolean arg0)
setBaby(boolean arg0)
method_7217(boolean arg0)
setBaby(boolean arg0)
public void
a(akh<?> arg0)
onSyncedDataUpdated(EntityDataAccessor<?> arg0)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
protected boolean
x()
convertsInWater()
method_7209()
canConvertInWater()
public void
h()
tick()
method_5773()
tick()
public void
k_()
aiStep()
method_6007()
tickMovement()
private void
r(int arg0)
startUnderWaterConversion(int arg0)
method_7213(int arg0)
setTicksUntilWaterConversion(int ticksUntilWaterConversion)
protected void
ab_()
doUnderWaterConversion()
method_7218()
convertInWater()
protected void
b(bwj<? extends com> arg0)
convertToZombieType(EntityType<? extends Zombie> arg0)
method_7200(class_1299<? extends class_1642> arg0)
convertTo(EntityType<? extends ZombieEntity> entityType)
public boolean
a(aro arg0, cqe arg1)
convertVillagerToZombieVillager(ServerLevel arg0, Villager arg1)
method_63654(class_3218 arg0, class_1646 arg1)
infectVillager(ServerWorld world, VillagerEntity villager)
protected boolean
ac_()
isSunSensitive()
method_7216()
burnsInDaylight()
public boolean
a(aro arg0, bup 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)
public boolean
c(aro arg0, bwa arg1)
doHurtTarget(ServerLevel arg0, Entity arg1)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
protected SoundEvent
u()
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
e(bup arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
l_()
getDeathSound()
method_6002()
getDeathSound()
protected SoundEvent
n()
getStepSound()
method_7207()
getStepSound()
protected void
b(iu arg0, dzo arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
public EntityType<? extends Zombie>
aq()
getType()
method_5864()
getType()
protected boolean
q()
canSpawnInLiquids()
method_64462()
canSpawnAsReinforcementInFluid()
protected void
a(azt arg0, btw arg1)
populateDefaultEquipmentSlots(RandomSource arg0, DifficultyInstance arg1)
method_5964(class_5819 arg0, class_1266 arg1)
initEquipment(Random arg0, LocalDifficulty arg1)
public void
b(tx arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToNbt(NbtCompound arg0)
public void
a(tx arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromNbt(NbtCompound arg0)
public boolean
a(aro arg0, bwz arg1)
killedEntity(ServerLevel arg0, LivingEntity arg1)
method_5874(class_3218 arg0, class_1309 arg1)
onKilledOther(ServerWorld arg0, LivingEntity arg1)
public EntityDimensions
e(bxl arg0)
getDefaultDimensions(Pose arg0)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
public boolean
h(cys arg0)
canHoldItem(ItemStack arg0)
method_5939(class_1799 arg0)
canPickupItem(ItemStack arg0)
public boolean
c(aro arg0, cys arg1)
wantsToPickUp(ServerLevel arg0, ItemStack arg1)
method_20820(class_3218 arg0, class_1799 arg1)
canGather(ServerWorld arg0, ItemStack arg1)
public SpawnGroupData
a(djg arg0, btw arg1, bwi arg2, bxr 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 void
b(int arg0)
setInWaterTime(int arg0)
method_63656(int arg0)
setInWaterTime(int inWaterTime)
public void
c(int arg0)
setConversionTime(int arg0)
method_63658(int arg0)
setTicksUntilWaterConversionDirect(int ticksUntilWaterConversion)
public static boolean
a(azt arg0)
getSpawnAsBabyOdds(RandomSource arg0)
method_29936(class_5819 arg0)
shouldBeBaby(Random random)
protected void
J(float arg0)
handleAttributes(float arg0)
method_7205(float arg0)
applyAttributeModifiers(float chanceMultiplier)
protected void
gw()
randomizeReinforcementsChance()
method_6001()
initAttributes()
protected void
a(aro arg0, bup arg1, boolean arg2)
dropCustomDeathLoot(ServerLevel arg0, DamageSource arg1, boolean arg2)
method_6099(class_3218 arg0, class_1282 arg1, boolean arg2)
dropEquipment(ServerWorld arg0, DamageSource arg1, boolean arg2)
protected ItemStack
t()
getSkull()
method_7215()
getSkull()