net.minecraft.world.entity

public abstract class Mob

extends LivingEntity

All mapped superinterfaces:

Nameable, CommandSource

aiy
net.minecraft.world.entity.Mob
net.minecraft.class_1308
net.minecraft.entity.mob.MobEntity
net.minecraft.entity.MobEntity
net.minecraft.server.v1_14_R1.EntityInsentient

Field summary

Modifier and TypeField
private static final EntityDataAccessor<Byte>
b
DATA_MOB_FLAGS_ID
field_6193
MOB_FLAGS
field_184654_a
public int
e
ambientSoundTime
field_6191
ambientSoundChance
field_70757_a
protected int
f
xpReward
field_6194
experiencePoints
field_70728_aV
protected LookControl
g
lookControl
field_6206
lookControl
field_70749_g
lookController
protected MoveControl
bs
moveControl
field_6207
moveControl
field_70765_h
moveController
protected JumpControl
bt
jumpControl
field_6204
jumpControl
field_70767_i
private final BodyRotationControl
c
bodyRotationControl
field_6188
bodyControl
field_70762_j
protected PathNavigation
bu
navigation
field_6189
navigation
field_70699_by
navigation
protected final GoalSelector
bv
goalSelector
field_6201
goalSelector
field_70714_bg
goalSelector
protected final GoalSelector
bw
targetSelector
field_6185
targetSelector
field_70715_bh
targetSelector
private LivingEntity
d
target
field_6199
target
field_70696_bz
goalTarget
private final Sensing
bz
sensing
field_6190
visibilityCache
field_70723_bA
private final NonNullList<ItemStack>
bA
handItems
field_6195
handItems
field_184656_bv
protected final float[]
bx
handDropChances
field_6187
handDropChances
field_82174_bp
dropChanceHand
private final NonNullList<ItemStack>
bB
armorItems
field_6205
armorItems
field_184657_bw
protected final float[]
by
armorDropChances
field_6186
armorDropChances
field_184655_bs
dropChanceArmor
private boolean
bC
canPickUpLoot
field_6203
pickUpLoot
field_82172_bs
canPickUpLoot
private boolean
bD
persistenceRequired
field_6200
persistent
field_82179_bU
persistent
private final Map<BlockPathTypes, Float>
bE
pathfindingMalus
field_6196
pathfindingPenalties
field_184658_bz
private ResourceLocation
bF
lootTable
field_6198
lootTable
field_184659_bA
lootTableKey
private long
bG
lootTableSeed
field_6184
lootTableSeed
field_184653_bB
lootTableSeed
private Entity
bH
leashHolder
field_6202
holdingEntity
field_110168_bw
leashHolder
private int
bI
delayedLeashHolderId
field_18279
holdingEntityId
field_213400_bI
private CompoundTag
bJ
leashInfoTag
field_6192
leashTag
field_110170_bx
private BlockPos
bK
restrictCenter
field_18074
positionTarget
field_213401_bK
private float
bL
restrictRadius
field_18075
positionTargetRange
field_213402_bL

Constructor summary

ModifierConstructor
protected (EntityType<? extends Mob> type, Level arg1)

Method summary

Modifier and TypeMethod
protected void
n()
registerGoals()
method_5959()
initGoals()
func_184651_r()
initPathfinder()
protected void
cl()
registerAttributes()
method_6001()
initAttributes()
func_110147_ax()
initAttributes()
protected PathNavigation
b(bhr arg0)
createNavigation(Level arg0)
method_5965(class_1937 arg0)
createNavigation(World world)
func_175447_b(World arg0)
public float
a(cnn arg0)
getPathfindingMalus(BlockPathTypes arg0)
method_5944(class_7 arg0)
getPathfindingPenalty(PathNodeType nodeType)
func_184643_a(PathNodeType arg0)
public void
a(cnn arg0, float arg1)
setPathfindingMalus(BlockPathTypes arg0, float arg1)
method_5941(class_7 arg0, float arg1)
setPathfindingPenalty(PathNodeType nodeType, float penalty)
func_184644_a(PathNodeType arg0, float arg1)
protected BodyRotationControl
o()
createBodyControl()
method_5963()
createBodyControl()
func_184650_s()
public LookControl
p()
getLookControl()
method_5988()
getLookControl()
func_70671_ap()
getControllerLook()
public MoveControl
r()
getMoveControl()
method_5962()
getMoveControl()
func_70605_aq()
getControllerMove()
public JumpControl
s()
getJumpControl()
method_5993()
getJumpControl()
func_70683_ar()
getControllerJump()
public PathNavigation
u()
getNavigation()
method_5942()
getNavigation()
func_70661_as()
getNavigation()
public Sensing
v()
getSensing()
method_5985()
getVisibilityCache()
func_70635_at()
getEntitySenses()
public LivingEntity
w()
getTarget()
method_5968()
getTarget()
func_70638_az()
getGoalTarget()
public void
g(aix arg0)
setTarget(LivingEntity arg0)
method_5980(class_1309 arg0)
setTarget(LivingEntity target)
func_70624_b(LivingEntity arg0)
setGoalTarget(EntityLiving arg0)
public boolean
a(ais<?> arg0)
canAttackType(EntityType<?> arg0)
method_5973(class_1299<?> arg0)
canTarget(EntityType<?> arg0)
func_213358_a(EntityType<?> arg0)
public void
z()
ate()
method_5983()
onEatingGrass()
func_70615_aA()
blockEaten()
protected void
u_()
defineSynchedData()
method_5693()
initDataTracker()
func_70088_a()
initDatawatcher()
public int
A()
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
func_70627_aG()
public void
B()
playAmbientSound()
method_5966()
playAmbientSound()
func_70642_aH()
public void
aa()
baseTick()
method_5670()
baseTick()
func_70030_z()
entityBaseTick()
protected void
c(ahx arg0)
playHurtSound(DamageSource arg0)
method_6013(class_1282 arg0)
playHurtSound(DamageSource arg0)
func_184581_c(DamageSource arg0)
private void
l()
resetAmbientSoundTime()
method_5975()
resetSoundDelay()
func_175456_n()
protected int
d(awg arg0)
getExperienceReward(Player arg0)
method_6110(class_1657 arg0)
getCurrentExperience(PlayerEntity arg0)
func_70693_a(PlayerEntity arg0)
getExpValue(EntityHuman arg0)
public void
D()
spawnAnim()
method_5990()
playSpawnEffects()
func_70656_aK()
doSpawnEffect()
public void
h()
tick()
method_5773()
tick()
func_70071_h_()
tick()
protected void
F()
updateControlFlags()
method_20417()
func_213385_F()
protected float
e(float arg0, float arg1)
tickHeadTurn(float arg0, float arg1)
method_6031(float arg0, float arg1)
turnHead(float arg0, float arg1)
func_110146_f(float arg0, float arg1)
protected SoundEvent
G()
getAmbientSound()
method_5994()
getAmbientSound()
func_184639_G()
getSoundAmbient()
public void
b(id arg0)
addAdditionalSaveData(CompoundTag arg0)
method_5652(class_2487 arg0)
writeCustomDataToTag(CompoundTag arg0)
func_213281_b(CompoundNBT arg0)
public void
a(id arg0)
readAdditionalSaveData(CompoundTag arg0)
method_5749(class_2487 arg0)
readCustomDataFromTag(CompoundTag arg0)
func_70037_a(CompoundNBT arg0)
protected void
a(ahx arg0, boolean arg1)
dropFromLootTable(DamageSource arg0, boolean arg1)
method_16077(class_1282 arg0, boolean arg1)
dropLoot(DamageSource arg0, boolean arg1)
func_213354_a(DamageSource arg0, boolean arg1)
protected LootContext$Builder
a(boolean arg0, ahx arg1)
createLootContext(boolean arg0, DamageSource arg1)
method_16079(boolean arg0, class_1282 arg1)
getLootContextBuilder(boolean arg0, DamageSource arg1)
func_213363_a(boolean arg0, DamageSource arg1)
public final ResourceLocation
cG()
getLootTable()
method_5989()
getLootTable()
func_213346_cF()
protected ResourceLocation
H()
getDefaultLootTable()
method_5991()
getLootTableId()
func_184647_J()
getDefaultLootTable()
public void
r(float arg0)
setZza(float arg0)
method_5930(float arg0)
setForwardSpeed(float forwardSpeed)
func_191989_p(float arg0)
public void
s(float arg0)
setYya(float arg0)
method_5976(float arg0)
setUpwardSpeed(float upwardSpeed)
func_70657_f(float arg0)
public void
t(float arg0)
setXxa(float arg0)
method_5938(float arg0)
setSidewaysSpeed(float sidewaysMovement)
func_184646_p(float arg0)
public void
o(float arg0)
setSpeed(float arg0)
method_6125(float arg0)
setMovementSpeed(float arg0)
func_70659_e(float arg0)
public void
k()
aiStep()
method_6007()
tickMovement()
func_70636_d()
movementTick()
protected void
a(atx arg0)
pickUpItem(ItemEntity arg0)
method_5949(class_1542 arg0)
loot(ItemEntity item)
func_175445_a(ItemEntity arg0)
protected boolean
a(bcj arg0, bcj arg1, ait arg2)
canReplaceCurrentItem(ItemStack arg0, ItemStack arg1, EquipmentSlot arg2)
method_5955(class_1799 arg0, class_1799 arg1, class_1304 arg2)
isBetterItemFor(ItemStack current, ItemStack previous, EquipmentSlot slot)
func_208003_a(ItemStack arg0, ItemStack arg1, EquipmentSlotType arg2)
protected boolean
g(bcj arg0)
canHoldItem(ItemStack arg0)
method_5939(class_1799 arg0)
canPickupItem(ItemStack stack)
func_175448_a(ItemStack arg0)
public boolean
c(double arg0)
removeWhenFarAway(double arg0)
method_5974(double arg0)
canImmediatelyDespawn(double distanceSquared)
func_213397_c(double arg0)
isTypeNotPersistent(double arg0)
public boolean
I()
requiresCustomPersistence()
method_17326()
cannotDespawn()
func_213392_I()
protected void
J()
checkDespawn()
method_5982()
checkDespawn()
func_70623_bb()
checkDespawn()
protected final void
dc()
serverAiStep()
method_6023()
tickNewAi()
func_70626_be()
doTick()
protected void
K()
sendDebugPackets()
method_18409()
sendAiDebugData()
func_213387_K()
protected void
L()
customServerAiStep()
method_5958()
mobTick()
func_70619_bc()
mobTick()
public int
M()
getMaxHeadXRot()
method_5978()
getLookPitchSpeed()
func_70646_bf()
public int
dA()
getMaxHeadYRot()
method_5986()
func_184649_cE()
public int
dB()
getHeadRotSpeed()
method_20240()
getLookYawSpeed()
func_213396_dB()
public void
a(aio arg0, float arg1, float arg2)
lookAt(Entity arg0, float arg1, float arg2)
method_5951(class_1297 arg0, float arg1, float arg2)
lookAtEntity(Entity targetEntity, float maxYawChange, float maxPitchChange)
func_70625_a(Entity arg0, float arg1, float arg2)
private float
a(float arg0, float arg1, float arg2)
rotlerp(float arg0, float arg1, float arg2)
method_5960(float arg0, float arg1, float arg2)
changeAngle(float oldAngle, float newAngle, float maxChangeInAngle)
func_70663_b(float arg0, float arg1, float arg2)
public static boolean
a(ais<? extends aiy> arg0, bhs arg1, aja arg2, ew arg3, Random arg4)
checkMobSpawnRules(EntityType<? extends Mob> arg0, LevelAccessor arg1, MobSpawnType arg2, BlockPos arg3, Random arg4)
method_20636(class_1299<? extends class_1308> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, Random arg4)
func_223315_a(EntityType<? extends MobEntity> arg0, IWorld arg1, SpawnReason arg2, BlockPos arg3, Random arg4)
public boolean
a(bhs arg0, aja arg1)
checkSpawnRules(LevelAccessor arg0, MobSpawnType arg1)
method_5979(class_1936 arg0, class_3730 arg1)
canSpawn(IWorld world, SpawnType spawnType)
func_213380_a(IWorld arg0, SpawnReason arg1)
public boolean
a(bhu arg0)
checkSpawnObstruction(LevelReader arg0)
method_5957(class_1941 arg0)
canSpawn(CollisionView world)
func_205019_a(IWorldReader arg0)
public int
dC()
getMaxSpawnClusterSize()
method_5945()
getLimitPerChunk()
func_70641_bl()
public boolean
c(int arg0)
isMaxGroupSizeReached(int arg0)
method_5969(int arg0)
spawnsTooManyForEachTry(int count)
func_204209_c(int arg0)
public int
bv()
getMaxFallDistance()
method_5850()
getSafeFallDistance()
func_82143_as()
public Iterable<ItemStack>
aZ()
getHandSlots()
method_5877()
getItemsHand()
func_184214_aD()
public Iterable<ItemStack>
ba()
getArmorSlots()
method_5661()
getArmorItems()
func_184193_aE()
getArmorItems()
public ItemStack
b(ait arg0)
getItemBySlot(EquipmentSlot arg0)
method_6118(class_1304 arg0)
getEquippedStack(EquipmentSlot arg0)
func_184582_a(EquipmentSlotType arg0)
getEquipment(EnumItemSlot arg0)
public void
a(ait arg0, bcj arg1)
setItemSlot(EquipmentSlot arg0, ItemStack arg1)
method_5673(class_1304 arg0, class_1799 arg1)
equipStack(EquipmentSlot arg0, ItemStack arg1)
func_184201_a(EquipmentSlotType arg0, ItemStack arg1)
setSlot(EnumItemSlot arg0, ItemStack arg1)
protected void
a(ahx arg0, int arg1, boolean arg2)
dropCustomDeathLoot(DamageSource arg0, int arg1, boolean arg2)
method_6099(class_1282 arg0, int arg1, boolean arg2)
dropEquipment(DamageSource arg0, int arg1, boolean arg2)
func_213333_a(DamageSource arg0, int arg1, boolean arg2)
dropDeathLoot(DamageSource arg0, int arg1, boolean arg2)
protected float
d(ait arg0)
getEquipmentDropChance(EquipmentSlot arg0)
method_5929(class_1304 arg0)
getDropChance(EquipmentSlot arg0)
func_205712_c(EquipmentSlotType arg0)
protected void
a(ahh arg0)
populateDefaultEquipmentSlots(DifficultyInstance arg0)
method_5964(class_1266 arg0)
initEquipment(LocalDifficulty difficulty)
func_180481_a(DifficultyInstance arg0)
public static EquipmentSlot
h(bcj arg0)
getEquipmentSlotForItem(ItemStack arg0)
method_5953(class_1799 arg0)
getPreferredEquipmentSlot(ItemStack stack)
func_184640_d(ItemStack arg0)
public static Item
a(ait arg0, int arg1)
getEquipmentForSlot(EquipmentSlot arg0, int arg1)
method_5948(class_1304 arg0, int arg1)
getEquipmentForSlot(EquipmentSlot equipmentSlot, int equipmentLevel)
func_184636_a(EquipmentSlotType arg0, int arg1)
protected void
b(ahh arg0)
populateDefaultEquipmentEnchantments(DifficultyInstance arg0)
method_5984(class_1266 arg0)
updateEnchantments(LocalDifficulty difficulty)
func_180483_b(DifficultyInstance arg0)
public SpawnGroupData
a(bhs arg0, ahh arg1, aja arg2, ajj arg3, id arg4)
finalizeSpawn(LevelAccessor arg0, DifficultyInstance arg1, MobSpawnType arg2, SpawnGroupData arg3, CompoundTag arg4)
method_5943(class_1936 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3, class_2487 arg4)
initialize(IWorld world, LocalDifficulty difficulty, SpawnType spawnType, EntityData entityData, CompoundTag entityTag)
func_213386_a(IWorld arg0, DifficultyInstance arg1, SpawnReason arg2, ILivingEntityData arg3, CompoundNBT arg4)
prepare(GeneratorAccess arg0, DifficultyDamageScaler arg1, EnumMobSpawn arg2, GroupDataEntity arg3, NBTTagCompound arg4)
public boolean
dD()
canBeControlledByRider()
method_5956()
canBeControlledByRider()
func_82171_bF()
public void
dE()
setPersistenceRequired()
method_5971()
setPersistent()
func_110163_bv()
setPersistent()
public void
a(ait arg0, float arg1)
setDropChance(EquipmentSlot arg0, float arg1)
method_5946(class_1304 arg0, float arg1)
setEquipmentDropChance(EquipmentSlot slot, float arg1)
func_184642_a(EquipmentSlotType arg0, float arg1)
public boolean
dF()
canPickUpLoot()
method_5936()
canPickUpLoot()
func_98052_bS()
canPickupLoot()
public void
n(boolean arg0)
setCanPickUpLoot(boolean arg0)
method_5952(boolean arg0)
setCanPickUpLoot(boolean arg0)
func_98053_h(boolean arg0)
setCanPickupLoot(boolean arg0)
public boolean
e(bcj arg0)
canTakeItem(ItemStack arg0)
method_18397(class_1799 arg0)
canPickUp(ItemStack arg0)
func_213365_e(ItemStack arg0)
public boolean
dG()
isPersistenceRequired()
method_5947()
isPersistent()
func_104002_bU()
isPersistent()
public final boolean
b(awg arg0, ahi arg1)
interact(Player arg0, InteractionHand arg1)
method_5688(class_1657 arg0, class_1268 arg1)
interact(PlayerEntity arg0, Hand arg1)
func_184230_a(PlayerEntity arg0, Hand arg1)
protected boolean
a(awg arg0, ahi arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity player, Hand hand)
func_184645_a(PlayerEntity arg0, Hand arg1)
public boolean
dH()
isWithinRestriction()
method_18411()
isInWalkTargetRange()
func_213383_dH()
public boolean
a(ew arg0)
isWithinRestriction(BlockPos arg0)
method_18407(class_2338 arg0)
isInWalkTargetRange(BlockPos pos)
func_213389_a(BlockPos arg0)
public void
a(ew arg0, int arg1)
restrictTo(BlockPos arg0, int arg1)
method_18408(class_2338 arg0, int arg1)
setPositionTarget(BlockPos target, int range)
func_213390_a(BlockPos arg0, int arg1)
public BlockPos
dI()
getRestrictCenter()
method_18412()
getPositionTarget()
func_213384_dI()
public float
dJ()
getRestrictRadius()
method_18413()
getPositionTargetRange()
func_213391_dJ()
public boolean
dL()
hasRestriction()
method_18410()
hasPositionTarget()
func_213394_dL()
protected void
dM()
tickLeash()
method_5995()
updateLeash()
func_110159_bB()
public void
a(boolean arg0, boolean arg1)
dropLeash(boolean arg0, boolean arg1)
method_5932(boolean arg0, boolean arg1)
detachLeash(boolean sendPacket, boolean arg1)
func_110160_i(boolean arg0, boolean arg1)
unleash(boolean arg0, boolean arg1)
public boolean
a(awg arg0)
canBeLeashed(Player arg0)
method_5931(class_1657 arg0)
canBeLeashedBy(PlayerEntity player)
func_184652_a(PlayerEntity arg0)
public boolean
dN()
isLeashed()
method_5934()
isLeashed()
func_110167_bD()
isLeashed()
public Entity
dO()
getLeashHolder()
method_5933()
getHoldingEntity()
func_110166_bE()
getLeashHolder()
public void
b(aio arg0, boolean arg1)
setLeashedTo(Entity arg0, boolean arg1)
method_5954(class_1297 arg0, boolean arg1)
attachLeash(Entity entity, boolean arg1)
func_110162_b(Entity arg0, boolean arg1)
setLeashHolder(Entity arg0, boolean arg1)
public boolean
a(aio arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
method_5873(class_1297 arg0, boolean arg1)
startRiding(Entity arg0, boolean arg1)
func_184205_a(Entity arg0, boolean arg1)
private void
dT()
restoreLeashFromSave()
method_5940()
deserializeLeashTag()
func_110165_bF()
public boolean
a_(int arg0, bcj arg1)
setSlot(int arg0, ItemStack arg1)
method_5758(int arg0, class_1799 arg1)
equip(int arg0, ItemStack arg1)
func_174820_d(int arg0, ItemStack arg1)
public boolean
ca()
isControlledByLocalInstance()
method_5787()
isLogicalSideForUpdatingMovement()
func_184186_bw()
public static boolean
b(ait arg0, bcj arg1)
isValidSlotForItem(EquipmentSlot arg0, ItemStack arg1)
method_5935(class_1304 arg0, class_1799 arg1)
canEquipmentSlotContain(EquipmentSlot slot, ItemStack item)
func_184648_b(EquipmentSlotType arg0, ItemStack arg1)
public boolean
df()
isEffectiveAi()
method_6034()
canMoveVoluntarily()
func_70613_aW()
public void
o(boolean arg0)
setNoAi(boolean arg0)
method_5977(boolean arg0)
setAiDisabled(boolean arg0)
func_94061_f(boolean arg0)
setNoAI(boolean arg0)
public void
p(boolean arg0)
setLeftHanded(boolean arg0)
method_5937(boolean arg0)
setLeftHanded(boolean leftHanded)
func_184641_n(boolean arg0)
public void
q(boolean arg0)
setAggressive(boolean arg0)
method_19540(boolean arg0)
setAttacking(boolean attacking)
func_213395_q(boolean arg0)
public boolean
dP()
isNoAi()
method_5987()
isAiDisabled()
func_175446_cd()
isNoAI()
public boolean
dQ()
isLeftHanded()
method_5961()
isLeftHanded()
func_184638_cS()
isLeftHanded()
public boolean
dR()
isAggressive()
method_6510()
isAttacking()
func_213398_dR()
public HumanoidArm
di()
getMainArm()
method_6068()
getMainArm()
func_184591_cq()
getMainHand()
public boolean
c(aix arg0)
canAttack(LivingEntity arg0)
method_18395(class_1309 arg0)
canTarget(LivingEntity arg0)
func_213336_c(LivingEntity arg0)
public boolean
C(aio arg0)
doHurtTarget(Entity arg0)
method_6121(class_1297 arg0)
tryAttack(Entity arg0)
func_70652_k(Entity arg0)
protected boolean
dS()
isSunBurnTick()
method_5972()
isInDaylight()
func_204609_dp()
protected void
c(zg<clj> arg0)
jumpInLiquid(Tag<Fluid> arg0)
method_6010(class_3494<class_3611> arg0)
swimUpward(Tag<Fluid> arg0)
func_180466_bG(Tag<Fluid> arg0)
public boolean
a(bce arg0)
isHolding(Item arg0)
method_18809(class_1792 arg0)
isHolding(Item arg0)
func_213382_a(Item arg0)
public void
a(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
func_70103_a(byte arg0)
public void
d(int arg0)
setDelayedLeashHolderId(int arg0)
method_18810(int arg0)
setHoldingEntityId(int id)
func_213381_d(int arg0)