Package net.minecraft.entity
Class MobEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
net.minecraft.entity.Entity
net.minecraft.entity.LivingEntity
net.minecraft.entity.MobEntity
- All Implemented Interfaces:
ICommandSource
,INameable
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeEntity
,INBTSerializable<CompoundNBT>
- Direct Known Subclasses:
AmbientEntity
,CreatureEntity
,EnderDragonEntity
,FlyingEntity
,SlimeEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.IMoveCallback
-
Field Summary
Modifier and TypeFieldDescriptionint
protected final float[]
private final NonNullList<ItemStack>
private final BodyController
private boolean
private static final DataParameter<Byte>
private int
final GoalSelector
protected final float[]
private final NonNullList<ItemStack>
protected JumpController
private Entity
private CompoundNBT
protected LookController
private ResourceLocation
private long
protected MovementController
protected PathNavigator
private final Map<PathNodeType,
Float> private boolean
private BlockPos
private float
private final EntitySenses
private LivingEntity
final GoalSelector
protected int
Fields inherited from class net.minecraft.entity.LivingEntity
animationPosition, animationSpeed, animationSpeedOld, animStep, animStepO, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, deathScore, deathTime, fallFlyTicks, flyingSpeed, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, lyHeadRot, noActionTime, oAttackAnim, oRun, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, swinging, swingingArm, swingTime, timeOffs, useItem, useItemRemaining, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
Fields inherited from class net.minecraft.entity.Entity
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, ENTITY_COUNTER, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld
Fields inherited from interface net.minecraft.command.ICommandSource
NULL
-
Constructor Summary
ModifierConstructorDescriptionprotected
MobEntity
(EntityType<? extends MobEntity> p_i48576_1_, World p_i48576_2_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalSaveData
(CompoundNBT p_213281_1_) void
aiStep()
void
ate()
void
baseTick()
boolean
canAttack
(LivingEntity p_213336_1_) boolean
canAttackType
(EntityType<?> p_213358_1_) boolean
boolean
canBeLeashed
(PlayerEntity p_184652_1_) boolean
canCutCorner
(PathNodeType p_233660_1_) boolean
canFireProjectileWeapon
(ShootableItem p_230280_1_) boolean
canHoldItem
(ItemStack p_175448_1_) boolean
protected boolean
canReplaceCurrentItem
(ItemStack p_208003_1_, ItemStack p_208003_2_) boolean
canReplaceEqualItem
(ItemStack p_233659_1_, ItemStack p_233659_2_) boolean
canTakeItem
(ItemStack p_213365_1_) private ActionResultType
checkAndHandleImportantInteractions
(PlayerEntity p_233661_1_, Hand p_233661_2_) void
static boolean
checkMobSpawnRules
(EntityType<? extends MobEntity> p_223315_0_, IWorld p_223315_1_, SpawnReason p_223315_2_, BlockPos p_223315_3_, Random p_223315_4_) boolean
checkSpawnObstruction
(IWorldReader p_205019_1_) boolean
checkSpawnRules
(IWorld p_213380_1_, SpawnReason p_213380_2_) <T extends MobEntity>
TconvertTo
(EntityType<T> p_233656_1_, boolean p_233656_2_) protected BodyController
protected LootContext.Builder
createLootContext
(boolean p_213363_1_, DamageSource p_213363_2_) protected PathNavigator
createNavigation
(World p_175447_1_) protected void
protected void
boolean
doHurtTarget
(Entity p_70652_1_) protected void
dropCustomDeathLoot
(DamageSource p_213333_1_, int p_213333_2_, boolean p_213333_3_) protected void
dropFromLootTable
(DamageSource p_213354_1_, boolean p_213354_2_) void
dropLeash
(boolean p_110160_1_, boolean p_110160_2_) protected void
enchantSpawnedArmor
(float p_242289_1_, EquipmentSlotType p_242289_2_) protected void
enchantSpawnedWeapon
(float p_241844_1_) boolean
equipItemIfPossible
(ItemStack p_233665_1_) finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) protected SoundEvent
int
protected ResourceLocation
protected float
getEquipmentDropChance
(EquipmentSlotType p_205712_1_) static Item
getEquipmentForSlot
(EquipmentSlotType p_184636_0_, int p_184636_1_) static EquipmentSlotType
getEquipmentSlotForItem
(ItemStack p_184640_0_) protected int
getExperienceReward
(PlayerEntity p_70693_1_) int
getItemBySlot
(EquipmentSlotType p_184582_1_) final ResourceLocation
int
int
int
int
float
getPathfindingMalus
(PathNodeType p_184643_1_) float
void
handleEntityEvent
(byte p_70103_1_) boolean
final ActionResultType
interact
(PlayerEntity p_184230_1_, Hand p_184230_2_) boolean
boolean
boolean
boolean
boolean
boolean
isMaxGroupSizeReached
(int p_204209_1_) boolean
isNoAi()
boolean
protected boolean
static boolean
isValidSlotForItem
(EquipmentSlotType p_184648_0_, ItemStack p_184648_1_) boolean
boolean
isWithinRestriction
(BlockPos p_213389_1_) protected void
jumpInLiquid
(ITag<Fluid> p_180466_1_) void
private void
maybeDisableShield
(PlayerEntity p_233655_1_, ItemStack p_233655_2_, ItemStack p_233655_3_) protected ActionResultType
mobInteract
(PlayerEntity p_230254_1_, Hand p_230254_2_) protected void
onOffspringSpawnedFromEgg
(PlayerEntity p_213406_1_, MobEntity p_213406_2_) protected void
pickUpItem
(ItemEntity p_175445_1_) void
protected void
playHurtSound
(DamageSource p_184581_1_) protected void
populateDefaultEquipmentEnchantments
(DifficultyInstance p_180483_1_) protected void
populateDefaultEquipmentSlots
(DifficultyInstance p_180481_1_) void
readAdditionalSaveData
(CompoundNBT p_70037_1_) protected void
protected void
boolean
removeWhenFarAway
(double p_213397_1_) boolean
private void
private void
void
restrictTo
(BlockPos p_213390_1_, int p_213390_2_) private float
rotlerp
(float p_70663_1_, float p_70663_2_, float p_70663_3_) protected void
protected final void
void
setAggressive
(boolean p_213395_1_) void
setBaby
(boolean p_82227_1_) void
setCanPickUpLoot
(boolean p_98053_1_) void
setDelayedLeashHolderId
(int p_213381_1_) void
setDropChance
(EquipmentSlotType p_184642_1_, float p_184642_2_) void
setGuaranteedDrop
(EquipmentSlotType p_233663_1_) void
setItemSlot
(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) protected void
setItemSlotAndDropWhenKilled
(EquipmentSlotType p_233657_1_, ItemStack p_233657_2_) void
setLeashedTo
(Entity p_110162_1_, boolean p_110162_2_) void
setLeftHanded
(boolean p_184641_1_) void
setNoAi
(boolean p_94061_1_) void
setPathfindingMalus
(PathNodeType p_184644_1_, float p_184644_2_) void
boolean
void
setSpeed
(float p_70659_1_) void
setTarget
(LivingEntity p_70624_1_) void
setXxa
(float p_184646_1_) void
setYya
(float p_70657_1_) void
setZza
(float p_191989_1_) protected boolean
protected boolean
void
boolean
startRiding
(Entity p_184205_1_, boolean p_184205_2_) void
tick()
protected float
tickHeadTurn
(float p_110146_1_, float p_110146_2_) protected void
protected void
boolean
wantsToPickUp
(ItemStack p_230293_1_) Methods inherited from class net.minecraft.entity.LivingEntity
actuallyHurt, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canBeAffected, canBreatheUnderwater, canSee, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doPush, dropAllDeathLoot, dropEquipment, dropExperience, eat, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAddEntityPacket, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDeathSound, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEyeHeight, getFallDamageSound, getFallFlyingTicks, getFeetBlockState, getFluidFallingAdjustedMovement, getHealth, getHurtSound, getItemInHand, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSoundVolume, getSpeed, getStandingEyeHeight, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, heal, hurt, hurtArmor, hurtCurrentlyUsedShield, increaseAirSupply, invalidateCaps, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBaby, isBlocking, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, markHurt, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onItemPickup, onLeaveCombat, onSoulSpeedBlock, onSyncedDataUpdated, outOfWorld, playBlockFallSound, playEquipSound, push, pushEntities, randomTeleport, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, rideableUnderWater, rideTick, setAbsorptionAmount, setArrowCount, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, spawnSoulSpeedParticle, startAutoSpinAttack, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, travel, triggerItemUseEffects, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime
Methods inherited from class net.minecraft.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getY, getY, getZ, getZ, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killed, lavaHurt, lerpMotion, limitPistonMovement, load, makeFlySound, makeStuckInBlock, maybeBackOffFromEdge, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playerTouch, playFlySound, playSound, playStepSound, playSwimSound, position, positionRider, processPortalCooldown, push, reapplyPosition, refreshDimensions, remove, remove, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setLevel, setLocationFromBoundingbox, setNoGravity, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSwimming, setUUID, setViewScale, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, teleportTo, teleportToWithTicket, thunderHit, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateInWaterStateAndDoWaterCurrentPushing, updateSwimming
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getDimensionsForge, getEntity, getEyeHeightForge, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
-
Field Details
-
DATA_MOB_FLAGS_ID
-
ambientSoundTime
public int ambientSoundTime -
xpReward
protected int xpReward -
lookControl
-
moveControl
-
jumpControl
-
bodyRotationControl
-
goalSelector
-
targetSelector
-
target
-
sensing
-
handItems
-
handDropChances
protected final float[] handDropChances -
armorItems
-
armorDropChances
protected final float[] armorDropChances -
canPickUpLoot
private boolean canPickUpLoot -
persistenceRequired
private boolean persistenceRequired -
pathfindingMalus
-
lootTable
-
lootTableSeed
private long lootTableSeed -
leashHolder
-
delayedLeashHolderId
private int delayedLeashHolderId -
leashInfoTag
-
restrictCenter
-
restrictRadius
private float restrictRadius
-
-
Constructor Details
-
MobEntity
-
-
Method Details
-
registerGoals
protected void registerGoals() -
createMobAttributes
-
shouldPassengersInheritMalus
protected boolean shouldPassengersInheritMalus() -
getPathfindingMalus
-
setPathfindingMalus
-
canCutCorner
-
createBodyControl
-
getLookControl
-
getMoveControl
-
getJumpControl
-
getSensing
-
getTarget
-
setTarget
-
canAttackType
- Overrides:
canAttackType
in classLivingEntity
-
canFireProjectileWeapon
-
ate
public void ate() -
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedData
in classLivingEntity
-
getAmbientSoundInterval
public int getAmbientSoundInterval() -
playAmbientSound
public void playAmbientSound() -
baseTick
public void baseTick()- Overrides:
baseTick
in classLivingEntity
-
playHurtSound
- Overrides:
playHurtSound
in classLivingEntity
-
resetAmbientSoundTime
private void resetAmbientSoundTime() -
getExperienceReward
- Overrides:
getExperienceReward
in classLivingEntity
-
spawnAnim
public void spawnAnim() -
handleEntityEvent
public void handleEntityEvent(byte p_70103_1_) - Overrides:
handleEntityEvent
in classLivingEntity
-
tick
public void tick()- Overrides:
tick
in classLivingEntity
-
updateControlFlags
protected void updateControlFlags() -
tickHeadTurn
protected float tickHeadTurn(float p_110146_1_, float p_110146_2_) - Overrides:
tickHeadTurn
in classLivingEntity
-
getAmbientSound
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveData
in classLivingEntity
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveData
in classLivingEntity
-
dropFromLootTable
- Overrides:
dropFromLootTable
in classLivingEntity
-
createLootContext
- Overrides:
createLootContext
in classLivingEntity
-
getLootTable
- Overrides:
getLootTable
in classLivingEntity
-
getDefaultLootTable
-
setZza
public void setZza(float p_191989_1_) -
setYya
public void setYya(float p_70657_1_) -
setXxa
public void setXxa(float p_184646_1_) -
setSpeed
public void setSpeed(float p_70659_1_) - Overrides:
setSpeed
in classLivingEntity
-
aiStep
public void aiStep()- Overrides:
aiStep
in classLivingEntity
-
pickUpItem
-
equipItemIfPossible
-
setItemSlotAndDropWhenKilled
-
setGuaranteedDrop
-
canReplaceCurrentItem
-
canReplaceEqualItem
-
canHoldItem
-
wantsToPickUp
-
removeWhenFarAway
public boolean removeWhenFarAway(double p_213397_1_) -
requiresCustomPersistence
public boolean requiresCustomPersistence() -
shouldDespawnInPeaceful
protected boolean shouldDespawnInPeaceful() -
checkDespawn
public void checkDespawn()- Overrides:
checkDespawn
in classEntity
-
serverAiStep
protected final void serverAiStep()- Overrides:
serverAiStep
in classLivingEntity
-
sendDebugPackets
protected void sendDebugPackets() -
customServerAiStep
protected void customServerAiStep() -
getMaxHeadXRot
public int getMaxHeadXRot() -
getMaxHeadYRot
public int getMaxHeadYRot() -
getHeadRotSpeed
public int getHeadRotSpeed() -
lookAt
-
rotlerp
private float rotlerp(float p_70663_1_, float p_70663_2_, float p_70663_3_) -
checkMobSpawnRules
public static boolean checkMobSpawnRules(EntityType<? extends MobEntity> p_223315_0_, IWorld p_223315_1_, SpawnReason p_223315_2_, BlockPos p_223315_3_, Random p_223315_4_) -
checkSpawnRules
-
checkSpawnObstruction
-
getMaxSpawnClusterSize
public int getMaxSpawnClusterSize() -
isMaxGroupSizeReached
public boolean isMaxGroupSizeReached(int p_204209_1_) -
getMaxFallDistance
public int getMaxFallDistance()- Overrides:
getMaxFallDistance
in classEntity
-
getHandSlots
- Overrides:
getHandSlots
in classEntity
-
getArmorSlots
- Specified by:
getArmorSlots
in classLivingEntity
-
getItemBySlot
- Specified by:
getItemBySlot
in classLivingEntity
-
setItemSlot
- Specified by:
setItemSlot
in classLivingEntity
-
dropCustomDeathLoot
- Overrides:
dropCustomDeathLoot
in classLivingEntity
-
getEquipmentDropChance
-
populateDefaultEquipmentSlots
-
getEquipmentSlotForItem
-
getEquipmentForSlot
-
populateDefaultEquipmentEnchantments
-
enchantSpawnedWeapon
protected void enchantSpawnedWeapon(float p_241844_1_) -
enchantSpawnedArmor
-
finalizeSpawn
@Nullable public ILivingEntityData finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, @Nullable ILivingEntityData p_213386_4_, @Nullable CompoundNBT p_213386_5_) -
canBeControlledByRider
public boolean canBeControlledByRider() -
setPersistenceRequired
public void setPersistenceRequired() -
setDropChance
-
canPickUpLoot
public boolean canPickUpLoot() -
setCanPickUpLoot
public void setCanPickUpLoot(boolean p_98053_1_) -
canTakeItem
- Overrides:
canTakeItem
in classLivingEntity
-
isPersistenceRequired
public boolean isPersistenceRequired() -
interact
-
checkAndHandleImportantInteractions
private ActionResultType checkAndHandleImportantInteractions(PlayerEntity p_233661_1_, Hand p_233661_2_) -
onOffspringSpawnedFromEgg
-
mobInteract
-
isWithinRestriction
public boolean isWithinRestriction() -
isWithinRestriction
-
restrictTo
-
getRestrictCenter
-
getRestrictRadius
public float getRestrictRadius() -
hasRestriction
public boolean hasRestriction() -
convertTo
-
tickLeash
protected void tickLeash() -
dropLeash
public void dropLeash(boolean p_110160_1_, boolean p_110160_2_) -
canBeLeashed
-
isLeashed
public boolean isLeashed() -
getLeashHolder
-
setLeashedTo
-
setDelayedLeashHolderId
public void setDelayedLeashHolderId(int p_213381_1_) -
startRiding
- Overrides:
startRiding
in classEntity
-
restoreLeashFromSave
private void restoreLeashFromSave() -
setSlot
-
isControlledByLocalInstance
public boolean isControlledByLocalInstance()- Overrides:
isControlledByLocalInstance
in classEntity
-
isValidSlotForItem
-
isEffectiveAi
public boolean isEffectiveAi()- Overrides:
isEffectiveAi
in classLivingEntity
-
setNoAi
public void setNoAi(boolean p_94061_1_) -
setLeftHanded
public void setLeftHanded(boolean p_184641_1_) -
setAggressive
public void setAggressive(boolean p_213395_1_) -
isNoAi
public boolean isNoAi() -
isLeftHanded
public boolean isLeftHanded() -
isAggressive
public boolean isAggressive() -
setBaby
public void setBaby(boolean p_82227_1_) -
getMainArm
- Specified by:
getMainArm
in classLivingEntity
-
canAttack
- Overrides:
canAttack
in classLivingEntity
-
doHurtTarget
- Overrides:
doHurtTarget
in classLivingEntity
-
maybeDisableShield
private void maybeDisableShield(PlayerEntity p_233655_1_, ItemStack p_233655_2_, ItemStack p_233655_3_) -
isSunBurnTick
protected boolean isSunBurnTick() -
jumpInLiquid
- Overrides:
jumpInLiquid
in classLivingEntity
-
removeAfterChangingDimensions
protected void removeAfterChangingDimensions()- Overrides:
removeAfterChangingDimensions
in classEntity
-