net.minecraft.entity.mob

public abstract class MobEntity

extends LivingEntity implements Targeter, EquipmentHolder, Leashable

All mapped superinterfaces:

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

net.minecraft.world.entity.Mob
net.minecraft.world.entity.Mob
net.minecraft.class_1308
net.minecraft.entity.mob.MobEntity

Field summary

Modifier and TypeField
private static final TrackedData<Byte>
DATA_MOB_FLAGS_ID
DATA_MOB_FLAGS_ID
field_6193
MOB_FLAGS
private static final int
MOB_FLAG_NO_AI
MOB_FLAG_NO_AI
field_30088
AI_DISABLED_FLAG
private static final int
MOB_FLAG_LEFTHANDED
MOB_FLAG_LEFTHANDED
field_30089
LEFT_HANDED_FLAG
private static final int
MOB_FLAG_AGGRESSIVE
MOB_FLAG_AGGRESSIVE
field_30090
ATTACKING_FLAG
protected static final int
PICKUP_REACH
PICKUP_REACH
field_30087
MINIMUM_DROPPED_EXPERIENCE_PER_EQUIPMENT
private static final Vec3i
ITEM_PICKUP_REACH
ITEM_PICKUP_REACH
field_38386
ITEM_PICK_UP_RANGE_EXPANDER
private static final List<EquipmentSlot>
EQUIPMENT_POPULATION_ORDER
EQUIPMENT_POPULATION_ORDER
field_52448
EQUIPMENT_INIT_ORDER
public static final float
MAX_WEARING_ARMOR_CHANCE
MAX_WEARING_ARMOR_CHANCE
field_30091
BASE_SPAWN_EQUIPMENT_CHANCE
public static final float
WEARING_ARMOR_UPGRADE_MATERIAL_CHANCE
WEARING_ARMOR_UPGRADE_MATERIAL_CHANCE
field_62909
ARMOR_UPGRADE_CHANCE
public static final float
WEARING_ARMOR_UPGRADE_MATERIAL_ATTEMPTS
WEARING_ARMOR_UPGRADE_MATERIAL_ATTEMPTS
field_62910
ARMOR_UPGRADE_ROLLS
public static final float
MAX_PICKUP_LOOT_CHANCE
MAX_PICKUP_LOOT_CHANCE
field_30083
DEFAULT_CAN_PICKUP_LOOT_CHANCE
public static final float
MAX_ENCHANTED_ARMOR_CHANCE
MAX_ENCHANTED_ARMOR_CHANCE
field_30084
BASE_ENCHANTED_ARMOR_CHANCE
public static final float
MAX_ENCHANTED_WEAPON_CHANCE
MAX_ENCHANTED_WEAPON_CHANCE
field_30085
BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE
public static final int
UPDATE_GOAL_SELECTOR_EVERY_N_TICKS
UPDATE_GOAL_SELECTOR_EVERY_N_TICKS
field_35039
field_35039
private static final double
DEFAULT_ATTACK_REACH
DEFAULT_ATTACK_REACH
field_45969
ATTACK_RANGE
private static final boolean
DEFAULT_CAN_PICK_UP_LOOT
DEFAULT_CAN_PICK_UP_LOOT
field_57591
DEFAULT_CAN_PICK_UP_LOOT
private static final boolean
DEFAULT_PERSISTENCE_REQUIRED
DEFAULT_PERSISTENCE_REQUIRED
field_57592
DEFAULT_PERSISTENCE_REQUIRED
private static final boolean
DEFAULT_LEFT_HANDED
DEFAULT_LEFT_HANDED
field_57593
DEFAULT_LEFT_HANDED
private static final boolean
DEFAULT_NO_AI
DEFAULT_NO_AI
field_57594
DEFAULT_NO_AI
protected static final Identifier
RANDOM_SPAWN_BONUS_ID
RANDOM_SPAWN_BONUS_ID
field_51997
RANDOM_SPAWN_BONUS_MODIFIER_ID
public static final String
TAG_DROP_CHANCES
TAG_DROP_CHANCES
field_60545
DROP_CHANCES_KEY
public static final String
TAG_LEFT_HANDED
TAG_LEFT_HANDED
field_60546
LEFT_HANDED_KEY
public static final String
TAG_CAN_PICK_UP_LOOT
TAG_CAN_PICK_UP_LOOT
field_60547
CAN_PICK_UP_LOOT_KEY
public static final String
TAG_NO_AI
TAG_NO_AI
field_60548
NO_AI_KEY
public static final String
TAG_PERSISTENCE_REQUIRED
TAG_PERSISTENCE_REQUIRED
field_1_6260
PERSISTENCE_REQUIRED_KEY
public int
ambientSoundTime
ambientSoundTime
field_6191
ambientSoundChance
protected int
xpReward
xpReward
field_6194
experiencePoints
protected LookControl
lookControl
lookControl
field_6206
lookControl
protected MoveControl
moveControl
moveControl
field_6207
moveControl
protected JumpControl
jumpControl
jumpControl
field_6204
jumpControl
private final BodyControl
bodyRotationControl
bodyRotationControl
field_6188
bodyControl
protected EntityNavigation
navigation
navigation
field_6189
navigation
protected final GoalSelector
goalSelector
goalSelector
field_6201
goalSelector
protected final GoalSelector
targetSelector
targetSelector
field_6185
targetSelector
private LivingEntity
target
target
field_6199
target
private final MobVisibilityCache
sensing
sensing
field_6190
visibilityCache
private EquipmentDropChances
dropChances
dropChances
field_55677
equipmentDropChances
private boolean
canPickUpLoot
canPickUpLoot
field_6203
canPickUpLoot
private boolean
persistenceRequired
persistenceRequired
field_6200
persistent
private final Map<PathNodeType, Float>
pathfindingMalus
pathfindingMalus
field_6196
pathfindingPenalties
private Optional<RegistryKey<LootTable>>
lootTable
lootTable
field_6198
lootTable
private long
lootTableSeed
lootTableSeed
field_6184
lootTableSeed
private Leashable$LeashData
leashData
leashData
field_52221
leashData
private BlockPos
homePosition
homePosition
field_18074
positionTarget
private int
homeRadius
homeRadius
field_18075
positionTargetRange

Constructor summary

ModifierConstructor
protected (EntityType<? extends MobEntity> type, World level)

Method summary

Modifier and TypeMethod
protected void
registerGoals()
registerGoals()
method_5959()
initGoals()
public static DefaultAttributeContainer$Builder
createMobAttributes()
createMobAttributes()
method_26828()
createMobAttributes()
protected EntityNavigation
createNavigation(Level level)
createNavigation(Level level)
method_5965(class_1937 arg0)
createNavigation(World world)
protected boolean
shouldPassengersInheritMalus()
shouldPassengersInheritMalus()
method_26323()
movesIndependently()
public float
getPathfindingMalus(PathType pathType)
getPathfindingMalus(PathType pathType)
method_5944(class_7 arg0)
getPathfindingPenalty(PathNodeType nodeType)
public void
setPathfindingMalus(PathType pathType, float cost)
setPathfindingMalus(PathType pathType, float cost)
method_5941(class_7 arg0, float arg1)
setPathfindingPenalty(PathNodeType nodeType, float penalty)
public void
onPathfindingStart()
onPathfindingStart()
method_51504()
onStartPathfinding()
public void
onPathfindingDone()
onPathfindingDone()
method_51503()
onFinishPathfinding()
protected BodyControl
createBodyControl()
createBodyControl()
method_5963()
createBodyControl()
public LookControl
getLookControl()
getLookControl()
method_5988()
getLookControl()
public MoveControl
getMoveControl()
getMoveControl()
method_5962()
getMoveControl()
public JumpControl
getJumpControl()
getJumpControl()
method_5993()
getJumpControl()
public EntityNavigation
getNavigation()
getNavigation()
method_5942()
getNavigation()
public LivingEntity
getControllingPassenger()
getControllingPassenger()
method_5642()
getControllingPassenger()
public MobVisibilityCache
getSensing()
getSensing()
method_5985()
getVisibilityCache()
public LivingEntity
getTarget()
getTarget()
method_5968()
getTarget()
public LivingEntity
getTargetUnchecked()
getTargetUnchecked()
method_1_837()
getRawTarget()
protected LivingEntity
asValidTarget(LivingEntity target)
asValidTarget(LivingEntity target)
method_1_370(class_1309 arg0)
filterTarget(LivingEntity target)
protected final LivingEntity
getTargetFromBrain()
getTargetFromBrain()
method_59664()
getTargetInBrain()
public void
setTarget(LivingEntity target)
setTarget(LivingEntity target)
method_5980(class_1309 arg0)
setTarget(LivingEntity target)
public boolean
canAttack(LivingEntity target)
canAttack(LivingEntity target)
method_18395(class_1309 arg0)
canTarget(LivingEntity arg0)
public boolean
canUseNonMeleeWeapon(ItemStack item)
canUseNonMeleeWeapon(ItemStack item)
method_76695(class_1799 arg0)
canUseRangedWeapon(ItemStack stack)
public void
ate()
ate()
method_5983()
onEatingGrass()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public int
getAmbientSoundInterval()
getAmbientSoundInterval()
method_5970()
getMinAmbientSoundDelay()
public void
playAmbientSound()
playAmbientSound()
method_5966()
playAmbientSound()
public void
baseTick()
baseTick()
method_5670()
baseTick()
protected void
playHurtSound(DamageSource source)
playHurtSound(DamageSource source)
method_6013(class_1282 arg0)
playHurtSound(DamageSource arg0)
private void
resetAmbientSoundTime()
resetAmbientSoundTime()
method_5975()
resetSoundDelay()
protected int
getBaseExperienceReward(ServerLevel level)
getBaseExperienceReward(ServerLevel level)
method_6110(class_3218 arg0)
getExperienceToDrop(ServerWorld arg0)
public void
spawnAnim()
spawnAnim()
method_5990()
playSpawnEffects()
public void
handleEntityEvent(byte id)
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
public void
tick()
tick()
method_5773()
tick()
protected void
updateControlFlags()
updateControlFlags()
method_20417()
updateGoalControls()
protected void
tickHeadTurn(float yBodyRotT)
tickHeadTurn(float yBodyRotT)
method_6031(float arg0)
turnHead(float arg0)
protected SoundEvent
getAmbientSound()
getAmbientSound()
method_5994()
getAmbientSound()
protected void
addAdditionalSaveData(ValueOutput output)
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
protected void
dropFromLootTable(ServerLevel level, DamageSource source, boolean playerKilled)
dropFromLootTable(ServerLevel level, DamageSource source, boolean playerKilled)
method_16077(class_3218 arg0, class_1282 arg1, boolean arg2)
dropLoot(ServerWorld arg0, DamageSource arg1, boolean arg2)
public final Optional<RegistryKey<LootTable>>
getLootTable()
getLootTable()
method_5991()
getLootTableKey()
public long
getLootTableSeed()
getLootTableSeed()
method_51851()
getLootTableSeed()
public void
setZza(float zza)
setZza(float zza)
method_5930(float arg0)
setForwardSpeed(float forwardSpeed)
public void
setYya(float yya)
setYya(float yya)
method_5976(float arg0)
setUpwardSpeed(float upwardSpeed)
public void
setXxa(float xxa)
setXxa(float xxa)
method_5938(float arg0)
setSidewaysSpeed(float sidewaysSpeed)
public void
setSpeed(float speed)
setSpeed(float speed)
method_6125(float arg0)
setMovementSpeed(float arg0)
public void
stopInPlace()
stopInPlace()
method_55695()
stopMovement()
public void
aiStep()
aiStep()
method_6007()
tickMovement()
protected EquipmentSlot
sunProtectionSlot()
sunProtectionSlot()
method_75127()
getDaylightProtectionSlot()
private void
burnUndead()
burnUndead()
method_75128()
tickBurnInDaylight()
private boolean
isSunBurnTick()
isSunBurnTick()
method_5972()
isAffectedByDaylight()
protected Vec3i
getPickupReach()
getPickupReach()
method_42646()
getItemPickUpRangeExpander()
protected void
pickUpItem(ServerLevel level, ItemEntity entity)
pickUpItem(ServerLevel level, ItemEntity entity)
method_5949(class_3218 arg0, class_1542 arg1)
loot(ServerWorld world, ItemEntity itemEntity)
public ItemStack
equipItemIfPossible(ServerLevel level, ItemStack itemStack)
equipItemIfPossible(ServerLevel level, ItemStack itemStack)
method_24523(class_3218 arg0, class_1799 arg1)
tryEquip(ServerWorld world, ItemStack stack)
protected void
setItemSlotAndDropWhenKilled(EquipmentSlot slot, ItemStack itemStack)
setItemSlotAndDropWhenKilled(EquipmentSlot slot, ItemStack itemStack)
method_24834(class_1304 arg0, class_1799 arg1)
equipLootStack(EquipmentSlot slot, ItemStack stack)
protected boolean
canShearEquipment(Player player)
canShearEquipment(Player player)
method_71768(class_1657 arg0)
canRemoveSaddle(PlayerEntity player)
protected boolean
attemptToShearEquipment(Player player, InteractionHand hand, ItemStack heldItem)
attemptToShearEquipment(Player player, InteractionHand hand, ItemStack heldItem)
method_1_3953(class_1657 arg0, class_1268 arg1, class_1799 arg2)
tryRemoveEquipmentByShearing(PlayerEntity player, Hand hand, ItemStack shears)
protected void
shearItem(Player player, InteractionHand hand, ItemStack heldItem, EquipmentSlot slot, ItemStack itemStackToShear)
shearItem(Player player, InteractionHand hand, ItemStack heldItem, EquipmentSlot slot, ItemStack itemStackToShear)
method_1_3955(class_1657 arg0, class_1268 arg1, class_1799 arg2, class_1304 arg3, class_1799 arg4)
removeEquipmentByShearing(PlayerEntity player, Hand hand, ItemStack shears, EquipmentSlot slot, ItemStack equipment)
public void
setGuaranteedDrop(EquipmentSlot slot)
setGuaranteedDrop(EquipmentSlot slot)
method_25939(class_1304 arg0)
setDropGuaranteed(EquipmentSlot slot)
protected boolean
canReplaceCurrentItem(ItemStack newItemStack, ItemStack currentItemStack, EquipmentSlot slot)
canReplaceCurrentItem(ItemStack newItemStack, ItemStack currentItemStack, EquipmentSlot slot)
method_5955(class_1799 arg0, class_1799 arg1, class_1304 arg2)
prefersNewEquipment(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot)
private boolean
compareArmor(ItemStack newItemStack, ItemStack currentItemStack, EquipmentSlot slot)
compareArmor(ItemStack newItemStack, ItemStack currentItemStack, EquipmentSlot slot)
method_65346(class_1799 arg0, class_1799 arg1, class_1304 arg2)
prefersNewArmor(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot)
private boolean
compareWeapons(ItemStack newItemStack, ItemStack currentItemStack, EquipmentSlot slot)
compareWeapons(ItemStack newItemStack, ItemStack currentItemStack, EquipmentSlot slot)
method_65347(class_1799 arg0, class_1799 arg1, class_1304 arg2)
prefersNewWeapon(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot)
private double
getApproximateAttributeWith(ItemStack itemStack, Holder<Attribute> attribute, EquipmentSlot slot)
getApproximateAttributeWith(ItemStack itemStack, Holder<Attribute> attribute, EquipmentSlot slot)
method_63632(class_1799 arg0, class_6880<class_1320> arg1, class_1304 arg2)
getAttributeValueWithStack(ItemStack stack, RegistryEntry<EntityAttribute> attribute, EquipmentSlot slot)
public boolean
canReplaceEqualItem(ItemStack newItemStack, ItemStack currentItemStack)
canReplaceEqualItem(ItemStack newItemStack, ItemStack currentItemStack)
method_26320(class_1799 arg0, class_1799 arg1)
prefersNewDamageableItem(ItemStack newStack, ItemStack oldStack)
public boolean
canHoldItem(ItemStack itemStack)
canHoldItem(ItemStack itemStack)
method_5939(class_1799 arg0)
canPickupItem(ItemStack stack)
public boolean
wantsToPickUp(ServerLevel level, ItemStack itemStack)
wantsToPickUp(ServerLevel level, ItemStack itemStack)
method_20820(class_3218 arg0, class_1799 arg1)
canGather(ServerWorld world, ItemStack stack)
public TagKey<Item>
getPreferredWeaponType()
getPreferredWeaponType()
method_65345()
getPreferredWeapons()
public boolean
removeWhenFarAway(double distSqr)
removeWhenFarAway(double distSqr)
method_5974(double arg0)
canImmediatelyDespawn(double distanceSquared)
public boolean
requiresCustomPersistence()
requiresCustomPersistence()
method_17326()
cannotDespawn()
public void
checkDespawn()
checkDespawn()
method_5982()
checkDespawn()
protected final void
serverAiStep()
serverAiStep()
method_6023()
tickNewAi()
protected void
customServerAiStep(ServerLevel level)
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld world)
public int
getMaxHeadXRot()
getMaxHeadXRot()
method_5978()
getMaxLookPitchChange()
public int
getMaxHeadYRot()
getMaxHeadYRot()
method_5986()
getMaxHeadRotation()
protected void
clampHeadRotationToBody()
clampHeadRotationToBody()
method_56080()
clampHeadYaw()
public int
getHeadRotSpeed()
getHeadRotSpeed()
method_20240()
getMaxLookYawChange()
public void
lookAt(Entity entity, float yMax, float xMax)
lookAt(Entity entity, float yMax, float xMax)
method_5951(class_1297 arg0, float arg1, float arg2)
lookAtEntity(Entity targetEntity, float maxYawChange, float maxPitchChange)
private float
rotlerp(float a, float b, float max)
rotlerp(float a, float b, float max)
method_5960(float arg0, float arg1, float arg2)
changeAngle(float from, float to, float max)
public static boolean
checkMobSpawnRules(EntityType<? extends Mob> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
checkMobSpawnRules(EntityType<? extends Mob> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
method_20636(class_1299<? extends class_1308> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canMobSpawn(EntityType<? extends MobEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
public boolean
checkSpawnRules(LevelAccessor level, EntitySpawnReason spawnReason)
checkSpawnRules(LevelAccessor level, EntitySpawnReason spawnReason)
method_5979(class_1936 arg0, class_3730 arg1)
canSpawn(WorldAccess world, SpawnReason spawnReason)
public boolean
checkSpawnObstruction(LevelReader level)
checkSpawnObstruction(LevelReader level)
method_5957(class_4538 arg0)
canSpawn(WorldView world)
public int
getMaxSpawnClusterSize()
getMaxSpawnClusterSize()
method_5945()
getLimitPerChunk()
public boolean
isMaxGroupSizeReached(int groupSize)
isMaxGroupSizeReached(int groupSize)
method_5969(int arg0)
spawnsTooManyForEachTry(int count)
public int
getMaxFallDistance()
getMaxFallDistance()
method_5850()
getSafeFallDistance()
public ItemStack
getBodyArmorItem()
getBodyArmorItem()
method_56676()
getBodyArmor()
public boolean
isSaddled()
isSaddled()
method_66672()
hasSaddleEquipped()
public boolean
isWearingBodyArmor()
isWearingBodyArmor()
method_56677()
isWearingBodyArmor()
private boolean
hasValidEquippableItemForSlot(EquipmentSlot slot)
hasValidEquippableItemForSlot(EquipmentSlot slot)
method_71148(class_1304 arg0)
isWearing(EquipmentSlot slot)
public Inventory
createEquipmentSlotContainer(EquipmentSlot slot)
createEquipmentSlotContainer(EquipmentSlot slot)
method_66674(class_1304 arg0)
createEquipmentInventory(EquipmentSlot slot)
protected void
dropCustomDeathLoot(ServerLevel level, DamageSource source, boolean killedByPlayer)
dropCustomDeathLoot(ServerLevel level, DamageSource source, boolean killedByPlayer)
method_6099(class_3218 arg0, class_1282 arg1, boolean arg2)
dropEquipment(ServerWorld arg0, DamageSource arg1, boolean arg2)
public EquipmentDropChances
getDropChances()
getDropChances()
method_66286()
getEquipmentDropChances()
public void
dropPreservedEquipment(ServerLevel level)
dropPreservedEquipment(ServerLevel level)
method_60973(class_3218 arg0)
dropAllForeignEquipment(ServerWorld world)
public Set<EquipmentSlot>
dropPreservedEquipment(ServerLevel level, Predicate<ItemStack> shouldDrop)
dropPreservedEquipment(ServerLevel level, Predicate<ItemStack> shouldDrop)
method_60972(class_3218 arg0, Predicate<class_1799> arg1)
dropForeignEquipment(ServerWorld world, Predicate<ItemStack> dropPredicate)
private LootWorldContext
createEquipmentParams(ServerLevel serverLevel)
createEquipmentParams(ServerLevel serverLevel)
method_58635(class_3218 arg0)
createEquipmentLootParameters(ServerWorld world)
public void
equip(EquipmentTable equipment)
equip(EquipmentTable equipment)
method_58634(class_9652 arg0)
setEquipmentFromTable(EquipmentTable equipmentTable)
public void
equip(ResourceKey<LootTable> lootTable, Map<EquipmentSlot, Float> dropChances)
equip(ResourceKey<LootTable> lootTable, Map<EquipmentSlot, Float> dropChances)
method_59665(class_5321<class_52> arg0, Map<class_1304, Float> arg1)
setEquipmentFromTable(RegistryKey<LootTable> lootTable, Map<EquipmentSlot, Float> slotDropChances)
protected void
populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty)
populateDefaultEquipmentSlots(RandomSource random, DifficultyInstance difficulty)
method_5964(class_5819 arg0, class_1266 arg1)
initEquipment(Random random, LocalDifficulty localDifficulty)
public static Item
getEquipmentForSlot(EquipmentSlot slot, int type)
getEquipmentForSlot(EquipmentSlot slot, int type)
method_5948(class_1304 arg0, int arg1)
getEquipmentForSlot(EquipmentSlot equipmentSlot, int equipmentLevel)
protected void
populateDefaultEquipmentEnchantments(ServerLevelAccessor level, RandomSource random, DifficultyInstance localDifficulty)
populateDefaultEquipmentEnchantments(ServerLevelAccessor level, RandomSource random, DifficultyInstance localDifficulty)
method_5984(class_5425 arg0, class_5819 arg1, class_1266 arg2)
updateEnchantments(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty)
protected void
enchantSpawnedWeapon(ServerLevelAccessor level, RandomSource random, DifficultyInstance difficulty)
enchantSpawnedWeapon(ServerLevelAccessor level, RandomSource random, DifficultyInstance difficulty)
method_30759(class_5425 arg0, class_5819 arg1, class_1266 arg2)
enchantMainHandItem(ServerWorldAccess world, Random random, LocalDifficulty localDifficulty)
protected void
enchantSpawnedArmor(ServerLevelAccessor level, RandomSource random, EquipmentSlot slot, DifficultyInstance difficulty)
enchantSpawnedArmor(ServerLevelAccessor level, RandomSource random, EquipmentSlot slot, DifficultyInstance difficulty)
method_30758(class_5425 arg0, class_5819 arg1, class_1304 arg2, class_1266 arg3)
enchantEquipment(ServerWorldAccess world, Random random, EquipmentSlot slot, LocalDifficulty localDifficulty)
private void
enchantSpawnedEquipment(ServerLevelAccessor level, EquipmentSlot slot, RandomSource random, float chance, DifficultyInstance difficulty)
enchantSpawnedEquipment(ServerLevelAccessor level, EquipmentSlot slot, RandomSource random, float chance, DifficultyInstance difficulty)
method_59927(class_5425 arg0, class_1304 arg1, class_5819 arg2, float arg3, class_1266 arg4)
enchantEquipment(ServerWorldAccess world, EquipmentSlot slot, Random random, float power, LocalDifficulty localDifficulty)
public EntityData
finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, SpawnGroupData groupData)
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 world, LocalDifficulty difficulty, SpawnReason spawnReason, EntityData entityData)
public void
setPersistenceRequired()
setPersistenceRequired()
method_5971()
setPersistent()
public void
setDropChance(EquipmentSlot slot, float percent)
setDropChance(EquipmentSlot slot, float percent)
method_5946(class_1304 arg0, float arg1)
setEquipmentDropChance(EquipmentSlot arg0, float arg1)
public boolean
canPickUpLoot()
canPickUpLoot()
method_5936()
canPickUpLoot()
public void
setCanPickUpLoot(boolean canPickUpLoot)
setCanPickUpLoot(boolean canPickUpLoot)
method_5952(boolean arg0)
setCanPickUpLoot(boolean canPickUpLoot)
protected boolean
canDispenserEquipIntoSlot(EquipmentSlot slot)
canDispenserEquipIntoSlot(EquipmentSlot slot)
method_63626(class_1304 arg0)
canDispenserEquipSlot(EquipmentSlot arg0)
public boolean
isPersistenceRequired()
isPersistenceRequired()
method_5947()
isPersistent()
public ActionResult
interact(Player player, InteractionHand hand, Vec3 location)
interact(Player player, InteractionHand hand, Vec3 location)
method_5688(class_1657 arg0, class_1268 arg1, class_243 arg2)
interact(PlayerEntity arg0, Hand arg1, Vec3d arg2)
private ActionResult
checkAndHandleImportantInteractions(Player player, InteractionHand hand)
checkAndHandleImportantInteractions(Player player, InteractionHand hand)
method_29506(class_1657 arg0, class_1268 arg1)
interactWithItem(PlayerEntity player, Hand hand)
protected void
onOffspringSpawnedFromEgg(Player spawner, Mob offspring)
onOffspringSpawnedFromEgg(Player spawner, Mob offspring)
method_18249(class_1657 arg0, class_1308 arg1)
onPlayerSpawnedChild(PlayerEntity player, MobEntity child)
protected ActionResult
mobInteract(Player player, InteractionHand hand)
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity player, Hand hand)
protected void
usePlayerItem(Player player, InteractionHand hand, ItemStack itemStack)
usePlayerItem(Player player, InteractionHand hand, ItemStack itemStack)
method_6475(class_1657 arg0, class_1268 arg1, class_1799 arg2)
eat(PlayerEntity player, Hand hand, ItemStack stack)
public boolean
isWithinHome()
isWithinHome()
method_18411()
isInPositionTargetRange()
public boolean
isWithinHome(BlockPos pos)
isWithinHome(BlockPos pos)
method_18407(class_2338 arg0)
isInPositionTargetRange(BlockPos pos)
public boolean
isWithinHome(Vec3 pos)
isWithinHome(Vec3 pos)
method_70676(class_243 arg0)
isInPositionTargetRange(Vec3d pos)
public void
setHomeTo(BlockPos newCenter, int radius)
setHomeTo(BlockPos newCenter, int radius)
method_18408(class_2338 arg0, int arg1)
setPositionTarget(BlockPos target, int range)
public BlockPos
getHomePosition()
getHomePosition()
method_18412()
getPositionTarget()
public int
getHomeRadius()
getHomeRadius()
method_18413()
getPositionTargetRange()
public void
clearHome()
clearHome()
method_35055()
clearPositionTarget()
public boolean
hasHome()
hasHome()
method_18410()
hasPositionTarget()
public <T extends MobEntity> T
convertTo(EntityType<T> entityType, ConversionParams params, EntitySpawnReason spawnReason, ConversionParams$AfterConversion<T> afterConversion)
convertTo(EntityType<T> entityType, ConversionParams params, EntitySpawnReason spawnReason, ConversionParams$AfterConversion<T> afterConversion)
method_63631(class_1299<T> arg0, class_10179 arg1, class_3730 arg2, class_10179$class_10180<T> arg3)
convertTo(EntityType<T> entityType, EntityConversionContext context, SpawnReason reason, EntityConversionContext$Finalizer<T> finalizer)
public <T extends MobEntity> T
convertTo(EntityType<T> entityType, ConversionParams params, ConversionParams$AfterConversion<T> afterConversion)
convertTo(EntityType<T> entityType, ConversionParams params, ConversionParams$AfterConversion<T> afterConversion)
method_29243(class_1299<T> arg0, class_10179 arg1, class_10179$class_10180<T> arg2)
convertTo(EntityType<T> entityType, EntityConversionContext context, EntityConversionContext$Finalizer<T> finalizer)
public Leashable$LeashData
getLeashData()
getLeashData()
method_60955()
getLeashData()
private void
resetAngularLeashMomentum()
resetAngularLeashMomentum()
method_71614()
resetLeashMomentum()
public void
setLeashData(Leashable$LeashData leashData)
setLeashData(Leashable$LeashData leashData)
method_60960(class_9817$class_9818 arg0)
setLeashData(Leashable$LeashData arg0)
public void
onLeashRemoved()
onLeashRemoved()
method_65895()
onLeashRemoved()
public void
leashTooFarBehaviour()
leashTooFarBehaviour()
method_60970()
snapLongLeash()
public boolean
canBeLeashed()
canBeLeashed()
method_5931()
canBeLeashed()
public boolean
startRiding(Entity entity, boolean force, boolean sendEventAndTriggers)
startRiding(Entity entity, boolean force, boolean sendEventAndTriggers)
method_5873(class_1297 arg0, boolean arg1, boolean arg2)
startRiding(Entity arg0, boolean arg1, boolean arg2)
public boolean
isEffectiveAi()
isEffectiveAi()
method_6034()
canActVoluntarily()
public void
setNoAi(boolean flag)
setNoAi(boolean flag)
method_5977(boolean arg0)
setAiDisabled(boolean aiDisabled)
public void
setLeftHanded(boolean flag)
setLeftHanded(boolean flag)
method_5937(boolean arg0)
setLeftHanded(boolean leftHanded)
public void
setAggressive(boolean flag)
setAggressive(boolean flag)
method_19540(boolean arg0)
setAttacking(boolean attacking)
public boolean
isNoAi()
isNoAi()
method_5987()
isAiDisabled()
public boolean
isLeftHanded()
isLeftHanded()
method_5961()
isLeftHanded()
public boolean
isAggressive()
isAggressive()
method_6510()
isAttacking()
public void
setBaby(boolean baby)
setBaby(boolean baby)
method_7217(boolean arg0)
setBaby(boolean baby)
public Arm
getMainArm()
getMainArm()
method_6068()
getMainArm()
public boolean
isWithinMeleeAttackRange(LivingEntity target)
isWithinMeleeAttackRange(LivingEntity target)
method_42150(class_1309 arg0)
isInAttackRange(LivingEntity entity)
protected Box
getAttackBoundingBox(double horizontalExpansion)
getAttackBoundingBox(double horizontalExpansion)
method_53511(double arg0)
getAttackBox(double attackRange)
public boolean
doHurtTarget(ServerLevel level, Entity target)
doHurtTarget(ServerLevel level, Entity target)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
protected void
jumpInLiquid(TagKey<Fluid> type)
jumpInLiquid(TagKey<Fluid> type)
method_6010(class_6862<class_3611> arg0)
swimUpward(TagKey<Fluid> arg0)
public void
removeFreeWill()
removeFreeWill()
method_35056()
clearGoalsAndTasks()
public GoalSelector
getGoalSelector()
getGoalSelector()
method_1_3954()
getGoalSelector()
public void
removeAllGoals(Predicate<Goal> predicate)
removeAllGoals(Predicate<Goal> predicate)
method_47825(Predicate<class_1352> arg0)
clearGoals(Predicate<Goal> predicate)
protected void
removeAfterChangingDimensions()
removeAfterChangingDimensions()
method_30076()
removeFromDimension()
public ItemStack
getPickResult()
getPickResult()
method_31480()
getPickBlockStack()
protected void
onAttributeUpdated(Holder<Attribute> attribute)
onAttributeUpdated(Holder<Attribute> attribute)
method_52540(class_6880<class_1320> arg0)
updateAttribute(RegistryEntry<EntityAttribute> arg0)
public void
registerDebugValues(ServerLevel level, DebugValueSource$Registration registration)
registerDebugValues(ServerLevel level, DebugValueSource$Registration registration)
method_74589(class_3218 arg0, class_12023$class_12024 arg1)
registerTracking(ServerWorld arg0, DebugTrackable$Tracker arg1)
public float
chargeSpeedModifier()
chargeSpeedModifier()
method_76091()
getRiderChargingSpeedMultiplier()