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
FieldsModifier and TypeFieldDescriptionintprotected final float[]private final NonNullList<ItemStack>private final BodyControllerprivate booleanprivate static final DataParameter<Byte>private intfinal GoalSelectorprotected final float[]private final NonNullList<ItemStack>protected JumpControllerprivate Entityprivate CompoundNBTprotected LookControllerprivate ResourceLocationprivate longprotected MovementControllerprotected PathNavigatorprivate final Map<PathNodeType,Float> private booleanprivate BlockPosprivate floatprivate final EntitySensesprivate LivingEntityfinal GoalSelectorprotected intFields 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, zzaFields 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, zOldFields inherited from interface net.minecraft.command.ICommandSource
NULL -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMobEntity(EntityType<? extends MobEntity> p_i48576_1_, World p_i48576_2_) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalSaveData(CompoundNBT p_213281_1_) voidaiStep()voidate()voidbaseTick()booleancanAttack(LivingEntity p_213336_1_) booleancanAttackType(EntityType<?> p_213358_1_) booleanbooleancanBeLeashed(PlayerEntity p_184652_1_) booleancanCutCorner(PathNodeType p_233660_1_) booleancanFireProjectileWeapon(ShootableItem p_230280_1_) booleancanHoldItem(ItemStack p_175448_1_) booleanprotected booleancanReplaceCurrentItem(ItemStack p_208003_1_, ItemStack p_208003_2_) booleancanReplaceEqualItem(ItemStack p_233659_1_, ItemStack p_233659_2_) booleancanTakeItem(ItemStack p_213365_1_) private ActionResultTypecheckAndHandleImportantInteractions(PlayerEntity p_233661_1_, Hand p_233661_2_) voidstatic booleancheckMobSpawnRules(EntityType<? extends MobEntity> p_223315_0_, IWorld p_223315_1_, SpawnReason p_223315_2_, BlockPos p_223315_3_, Random p_223315_4_) booleancheckSpawnObstruction(IWorldReader p_205019_1_) booleancheckSpawnRules(IWorld p_213380_1_, SpawnReason p_213380_2_) <T extends MobEntity>
TconvertTo(EntityType<T> p_233656_1_, boolean p_233656_2_) protected BodyControllerprotected LootContext.BuildercreateLootContext(boolean p_213363_1_, DamageSource p_213363_2_) protected PathNavigatorcreateNavigation(World p_175447_1_) protected voidprotected voidbooleandoHurtTarget(Entity p_70652_1_) protected voiddropCustomDeathLoot(DamageSource p_213333_1_, int p_213333_2_, boolean p_213333_3_) protected voiddropFromLootTable(DamageSource p_213354_1_, boolean p_213354_2_) voiddropLeash(boolean p_110160_1_, boolean p_110160_2_) protected voidenchantSpawnedArmor(float p_242289_1_, EquipmentSlotType p_242289_2_) protected voidenchantSpawnedWeapon(float p_241844_1_) booleanequipItemIfPossible(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 SoundEventintprotected ResourceLocationprotected floatgetEquipmentDropChance(EquipmentSlotType p_205712_1_) static ItemgetEquipmentForSlot(EquipmentSlotType p_184636_0_, int p_184636_1_) static EquipmentSlotTypegetEquipmentSlotForItem(ItemStack p_184640_0_) protected intgetExperienceReward(PlayerEntity p_70693_1_) intgetItemBySlot(EquipmentSlotType p_184582_1_) final ResourceLocationintintintintfloatgetPathfindingMalus(PathNodeType p_184643_1_) floatvoidhandleEntityEvent(byte p_70103_1_) booleanfinal ActionResultTypeinteract(PlayerEntity p_184230_1_, Hand p_184230_2_) booleanbooleanbooleanbooleanbooleanbooleanisMaxGroupSizeReached(int p_204209_1_) booleanisNoAi()booleanprotected booleanstatic booleanisValidSlotForItem(EquipmentSlotType p_184648_0_, ItemStack p_184648_1_) booleanbooleanisWithinRestriction(BlockPos p_213389_1_) protected voidjumpInLiquid(ITag<Fluid> p_180466_1_) voidprivate voidmaybeDisableShield(PlayerEntity p_233655_1_, ItemStack p_233655_2_, ItemStack p_233655_3_) protected ActionResultTypemobInteract(PlayerEntity p_230254_1_, Hand p_230254_2_) protected voidonOffspringSpawnedFromEgg(PlayerEntity p_213406_1_, MobEntity p_213406_2_) protected voidpickUpItem(ItemEntity p_175445_1_) voidprotected voidplayHurtSound(DamageSource p_184581_1_) protected voidpopulateDefaultEquipmentEnchantments(DifficultyInstance p_180483_1_) protected voidpopulateDefaultEquipmentSlots(DifficultyInstance p_180481_1_) voidreadAdditionalSaveData(CompoundNBT p_70037_1_) protected voidprotected voidbooleanremoveWhenFarAway(double p_213397_1_) booleanprivate voidprivate voidvoidrestrictTo(BlockPos p_213390_1_, int p_213390_2_) private floatrotlerp(float p_70663_1_, float p_70663_2_, float p_70663_3_) protected voidprotected final voidvoidsetAggressive(boolean p_213395_1_) voidsetBaby(boolean p_82227_1_) voidsetCanPickUpLoot(boolean p_98053_1_) voidsetDelayedLeashHolderId(int p_213381_1_) voidsetDropChance(EquipmentSlotType p_184642_1_, float p_184642_2_) voidsetGuaranteedDrop(EquipmentSlotType p_233663_1_) voidsetItemSlot(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) protected voidsetItemSlotAndDropWhenKilled(EquipmentSlotType p_233657_1_, ItemStack p_233657_2_) voidsetLeashedTo(Entity p_110162_1_, boolean p_110162_2_) voidsetLeftHanded(boolean p_184641_1_) voidsetNoAi(boolean p_94061_1_) voidsetPathfindingMalus(PathNodeType p_184644_1_, float p_184644_2_) voidbooleanvoidsetSpeed(float p_70659_1_) voidsetTarget(LivingEntity p_70624_1_) voidsetXxa(float p_184646_1_) voidsetYya(float p_70657_1_) voidsetZza(float p_191989_1_) protected booleanprotected booleanvoidbooleanstartRiding(Entity p_184205_1_, boolean p_184205_2_) voidtick()protected floattickHeadTurn(float p_110146_1_, float p_110146_2_) protected voidprotected voidbooleanwantsToPickUp(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, updateSwingTimeMethods 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, updateSwimmingMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods 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:
canAttackTypein classLivingEntity
-
canFireProjectileWeapon
-
ate
public void ate() -
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedDatain classLivingEntity
-
getAmbientSoundInterval
public int getAmbientSoundInterval() -
playAmbientSound
public void playAmbientSound() -
baseTick
public void baseTick()- Overrides:
baseTickin classLivingEntity
-
playHurtSound
- Overrides:
playHurtSoundin classLivingEntity
-
resetAmbientSoundTime
private void resetAmbientSoundTime() -
getExperienceReward
- Overrides:
getExperienceRewardin classLivingEntity
-
spawnAnim
public void spawnAnim() -
handleEntityEvent
public void handleEntityEvent(byte p_70103_1_) - Overrides:
handleEntityEventin classLivingEntity
-
tick
public void tick()- Overrides:
tickin classLivingEntity
-
updateControlFlags
protected void updateControlFlags() -
tickHeadTurn
protected float tickHeadTurn(float p_110146_1_, float p_110146_2_) - Overrides:
tickHeadTurnin classLivingEntity
-
getAmbientSound
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveDatain classLivingEntity
-
readAdditionalSaveData
- Overrides:
readAdditionalSaveDatain classLivingEntity
-
dropFromLootTable
- Overrides:
dropFromLootTablein classLivingEntity
-
createLootContext
- Overrides:
createLootContextin classLivingEntity
-
getLootTable
- Overrides:
getLootTablein 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:
setSpeedin classLivingEntity
-
aiStep
public void aiStep()- Overrides:
aiStepin 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:
checkDespawnin classEntity
-
serverAiStep
protected final void serverAiStep()- Overrides:
serverAiStepin 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:
getMaxFallDistancein classEntity
-
getHandSlots
- Overrides:
getHandSlotsin classEntity
-
getArmorSlots
- Specified by:
getArmorSlotsin classLivingEntity
-
getItemBySlot
- Specified by:
getItemBySlotin classLivingEntity
-
setItemSlot
- Specified by:
setItemSlotin classLivingEntity
-
dropCustomDeathLoot
- Overrides:
dropCustomDeathLootin 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:
canTakeItemin 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:
startRidingin classEntity
-
restoreLeashFromSave
private void restoreLeashFromSave() -
setSlot
-
isControlledByLocalInstance
public boolean isControlledByLocalInstance()- Overrides:
isControlledByLocalInstancein classEntity
-
isValidSlotForItem
-
isEffectiveAi
public boolean isEffectiveAi()- Overrides:
isEffectiveAiin 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:
getMainArmin classLivingEntity
-
canAttack
- Overrides:
canAttackin classLivingEntity
-
doHurtTarget
- Overrides:
doHurtTargetin classLivingEntity
-
maybeDisableShield
private void maybeDisableShield(PlayerEntity p_233655_1_, ItemStack p_233655_2_, ItemStack p_233655_3_) -
isSunBurnTick
protected boolean isSunBurnTick() -
jumpInLiquid
- Overrides:
jumpInLiquidin classLivingEntity
-
removeAfterChangingDimensions
protected void removeAfterChangingDimensions()- Overrides:
removeAfterChangingDimensionsin classEntity
-