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
public abstract class MobEntity extends LivingEntity
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.IMoveCallback
-
-
Field Summary
Fields Modifier and Type Field Description int
ambientSoundTime
protected float[]
armorDropChances
private NonNullList<ItemStack>
armorItems
private BodyController
bodyRotationControl
private boolean
canPickUpLoot
private static DataParameter<java.lang.Byte>
DATA_MOB_FLAGS_ID
private int
delayedLeashHolderId
GoalSelector
goalSelector
protected float[]
handDropChances
private NonNullList<ItemStack>
handItems
protected JumpController
jumpControl
private Entity
leashHolder
private CompoundNBT
leashInfoTag
protected LookController
lookControl
private ResourceLocation
lootTable
private long
lootTableSeed
protected MovementController
moveControl
protected PathNavigator
navigation
private java.util.Map<PathNodeType,java.lang.Float>
pathfindingMalus
private boolean
persistenceRequired
private BlockPos
restrictCenter
private float
restrictRadius
private EntitySenses
sensing
private LivingEntity
target
GoalSelector
targetSelector
protected int
xpReward
-
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
Constructors Modifier Constructor Description protected
MobEntity(EntityType<? extends MobEntity> p_i48576_1_, World p_i48576_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAdditionalSaveData(CompoundNBT p_213281_1_)
void
aiStep()
void
ate()
void
baseTick()
boolean
canAttack(LivingEntity p_213336_1_)
boolean
canAttackType(EntityType<?> p_213358_1_)
boolean
canBeControlledByRider()
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
canPickUpLoot()
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
checkDespawn()
static boolean
checkMobSpawnRules(EntityType<? extends MobEntity> p_223315_0_, IWorld p_223315_1_, SpawnReason p_223315_2_, BlockPos p_223315_3_, java.util.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
createBodyControl()
protected LootContext.Builder
createLootContext(boolean p_213363_1_, DamageSource p_213363_2_)
static AttributeModifierMap.MutableAttribute
createMobAttributes()
protected PathNavigator
createNavigation(World p_175447_1_)
protected void
customServerAiStep()
protected void
defineSynchedData()
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_)
ILivingEntityData
finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
protected SoundEvent
getAmbientSound()
int
getAmbientSoundInterval()
java.lang.Iterable<ItemStack>
getArmorSlots()
protected ResourceLocation
getDefaultLootTable()
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_)
java.lang.Iterable<ItemStack>
getHandSlots()
int
getHeadRotSpeed()
ItemStack
getItemBySlot(EquipmentSlotType p_184582_1_)
JumpController
getJumpControl()
Entity
getLeashHolder()
LookController
getLookControl()
ResourceLocation
getLootTable()
HandSide
getMainArm()
int
getMaxFallDistance()
int
getMaxHeadXRot()
int
getMaxHeadYRot()
int
getMaxSpawnClusterSize()
MovementController
getMoveControl()
PathNavigator
getNavigation()
float
getPathfindingMalus(PathNodeType p_184643_1_)
BlockPos
getRestrictCenter()
float
getRestrictRadius()
EntitySenses
getSensing()
LivingEntity
getTarget()
void
handleEntityEvent(byte p_70103_1_)
boolean
hasRestriction()
ActionResultType
interact(PlayerEntity p_184230_1_, Hand p_184230_2_)
boolean
isAggressive()
boolean
isControlledByLocalInstance()
boolean
isEffectiveAi()
boolean
isLeashed()
boolean
isLeftHanded()
boolean
isMaxGroupSizeReached(int p_204209_1_)
boolean
isNoAi()
boolean
isPersistenceRequired()
protected boolean
isSunBurnTick()
static boolean
isValidSlotForItem(EquipmentSlotType p_184648_0_, ItemStack p_184648_1_)
boolean
isWithinRestriction()
boolean
isWithinRestriction(BlockPos p_213389_1_)
protected void
jumpInLiquid(ITag<Fluid> p_180466_1_)
void
lookAt(Entity p_70625_1_, float p_70625_2_, float p_70625_3_)
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
playAmbientSound()
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
registerGoals()
protected void
removeAfterChangingDimensions()
boolean
removeWhenFarAway(double p_213397_1_)
boolean
requiresCustomPersistence()
private void
resetAmbientSoundTime()
private void
restoreLeashFromSave()
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
sendDebugPackets()
protected void
serverAiStep()
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
setPersistenceRequired()
boolean
setSlot(int p_174820_1_, ItemStack p_174820_2_)
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
shouldDespawnInPeaceful()
protected boolean
shouldPassengersInheritMalus()
void
spawnAnim()
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
tickLeash()
protected void
updateControlFlags()
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 Detail
-
DATA_MOB_FLAGS_ID
private static final DataParameter<java.lang.Byte> DATA_MOB_FLAGS_ID
-
ambientSoundTime
public int ambientSoundTime
-
xpReward
protected int xpReward
-
lookControl
protected LookController lookControl
-
moveControl
protected MovementController moveControl
-
jumpControl
protected JumpController jumpControl
-
bodyRotationControl
private final BodyController bodyRotationControl
-
navigation
protected PathNavigator navigation
-
goalSelector
public final GoalSelector goalSelector
-
targetSelector
public final GoalSelector targetSelector
-
target
private LivingEntity target
-
sensing
private final EntitySenses sensing
-
handItems
private final NonNullList<ItemStack> handItems
-
handDropChances
protected final float[] handDropChances
-
armorItems
private final NonNullList<ItemStack> armorItems
-
armorDropChances
protected final float[] armorDropChances
-
canPickUpLoot
private boolean canPickUpLoot
-
persistenceRequired
private boolean persistenceRequired
-
pathfindingMalus
private final java.util.Map<PathNodeType,java.lang.Float> pathfindingMalus
-
lootTable
private ResourceLocation lootTable
-
lootTableSeed
private long lootTableSeed
-
leashHolder
@Nullable private Entity leashHolder
-
delayedLeashHolderId
private int delayedLeashHolderId
-
leashInfoTag
@Nullable private CompoundNBT leashInfoTag
-
restrictCenter
private BlockPos restrictCenter
-
restrictRadius
private float restrictRadius
-
-
Constructor Detail
-
MobEntity
protected MobEntity(EntityType<? extends MobEntity> p_i48576_1_, World p_i48576_2_)
-
-
Method Detail
-
registerGoals
protected void registerGoals()
-
createMobAttributes
public static AttributeModifierMap.MutableAttribute createMobAttributes()
-
createNavigation
protected PathNavigator createNavigation(World p_175447_1_)
-
shouldPassengersInheritMalus
protected boolean shouldPassengersInheritMalus()
-
getPathfindingMalus
public float getPathfindingMalus(PathNodeType p_184643_1_)
-
setPathfindingMalus
public void setPathfindingMalus(PathNodeType p_184644_1_, float p_184644_2_)
-
canCutCorner
public boolean canCutCorner(PathNodeType p_233660_1_)
-
createBodyControl
protected BodyController createBodyControl()
-
getLookControl
public LookController getLookControl()
-
getMoveControl
public MovementController getMoveControl()
-
getJumpControl
public JumpController getJumpControl()
-
getNavigation
public PathNavigator getNavigation()
-
getSensing
public EntitySenses getSensing()
-
getTarget
@Nullable public LivingEntity getTarget()
-
setTarget
public void setTarget(@Nullable LivingEntity p_70624_1_)
-
canAttackType
public boolean canAttackType(EntityType<?> p_213358_1_)
- Overrides:
canAttackType
in classLivingEntity
-
canFireProjectileWeapon
public boolean canFireProjectileWeapon(ShootableItem p_230280_1_)
-
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
protected void playHurtSound(DamageSource p_184581_1_)
- Overrides:
playHurtSound
in classLivingEntity
-
resetAmbientSoundTime
private void resetAmbientSoundTime()
-
getExperienceReward
protected int getExperienceReward(PlayerEntity p_70693_1_)
- 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
@Nullable protected SoundEvent getAmbientSound()
-
addAdditionalSaveData
public void addAdditionalSaveData(CompoundNBT p_213281_1_)
- Overrides:
addAdditionalSaveData
in classLivingEntity
-
readAdditionalSaveData
public void readAdditionalSaveData(CompoundNBT p_70037_1_)
- Overrides:
readAdditionalSaveData
in classLivingEntity
-
dropFromLootTable
protected void dropFromLootTable(DamageSource p_213354_1_, boolean p_213354_2_)
- Overrides:
dropFromLootTable
in classLivingEntity
-
createLootContext
protected LootContext.Builder createLootContext(boolean p_213363_1_, DamageSource p_213363_2_)
- Overrides:
createLootContext
in classLivingEntity
-
getLootTable
public final ResourceLocation getLootTable()
- Overrides:
getLootTable
in classLivingEntity
-
getDefaultLootTable
protected ResourceLocation 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
protected void pickUpItem(ItemEntity p_175445_1_)
-
equipItemIfPossible
public boolean equipItemIfPossible(ItemStack p_233665_1_)
-
setItemSlotAndDropWhenKilled
protected void setItemSlotAndDropWhenKilled(EquipmentSlotType p_233657_1_, ItemStack p_233657_2_)
-
setGuaranteedDrop
public void setGuaranteedDrop(EquipmentSlotType p_233663_1_)
-
canReplaceCurrentItem
protected boolean canReplaceCurrentItem(ItemStack p_208003_1_, ItemStack p_208003_2_)
-
canReplaceEqualItem
public boolean canReplaceEqualItem(ItemStack p_233659_1_, ItemStack p_233659_2_)
-
canHoldItem
public boolean canHoldItem(ItemStack p_175448_1_)
-
wantsToPickUp
public boolean wantsToPickUp(ItemStack p_230293_1_)
-
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
public void lookAt(Entity p_70625_1_, float p_70625_2_, float p_70625_3_)
-
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_, java.util.Random p_223315_4_)
-
checkSpawnRules
public boolean checkSpawnRules(IWorld p_213380_1_, SpawnReason p_213380_2_)
-
checkSpawnObstruction
public boolean checkSpawnObstruction(IWorldReader p_205019_1_)
-
getMaxSpawnClusterSize
public int getMaxSpawnClusterSize()
-
isMaxGroupSizeReached
public boolean isMaxGroupSizeReached(int p_204209_1_)
-
getMaxFallDistance
public int getMaxFallDistance()
- Overrides:
getMaxFallDistance
in classEntity
-
getHandSlots
public java.lang.Iterable<ItemStack> getHandSlots()
- Overrides:
getHandSlots
in classEntity
-
getArmorSlots
public java.lang.Iterable<ItemStack> getArmorSlots()
- Specified by:
getArmorSlots
in classLivingEntity
-
getItemBySlot
public ItemStack getItemBySlot(EquipmentSlotType p_184582_1_)
- Specified by:
getItemBySlot
in classLivingEntity
-
setItemSlot
public void setItemSlot(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_)
- Specified by:
setItemSlot
in classLivingEntity
-
dropCustomDeathLoot
protected void dropCustomDeathLoot(DamageSource p_213333_1_, int p_213333_2_, boolean p_213333_3_)
- Overrides:
dropCustomDeathLoot
in classLivingEntity
-
getEquipmentDropChance
protected float getEquipmentDropChance(EquipmentSlotType p_205712_1_)
-
populateDefaultEquipmentSlots
protected void populateDefaultEquipmentSlots(DifficultyInstance p_180481_1_)
-
getEquipmentSlotForItem
public static EquipmentSlotType getEquipmentSlotForItem(ItemStack p_184640_0_)
-
getEquipmentForSlot
@Nullable public static Item getEquipmentForSlot(EquipmentSlotType p_184636_0_, int p_184636_1_)
-
populateDefaultEquipmentEnchantments
protected void populateDefaultEquipmentEnchantments(DifficultyInstance p_180483_1_)
-
enchantSpawnedWeapon
protected void enchantSpawnedWeapon(float p_241844_1_)
-
enchantSpawnedArmor
protected void enchantSpawnedArmor(float p_242289_1_, EquipmentSlotType p_242289_2_)
-
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
public void setDropChance(EquipmentSlotType p_184642_1_, float p_184642_2_)
-
canPickUpLoot
public boolean canPickUpLoot()
-
setCanPickUpLoot
public void setCanPickUpLoot(boolean p_98053_1_)
-
canTakeItem
public boolean canTakeItem(ItemStack p_213365_1_)
- Overrides:
canTakeItem
in classLivingEntity
-
isPersistenceRequired
public boolean isPersistenceRequired()
-
interact
public final ActionResultType interact(PlayerEntity p_184230_1_, Hand p_184230_2_)
-
checkAndHandleImportantInteractions
private ActionResultType checkAndHandleImportantInteractions(PlayerEntity p_233661_1_, Hand p_233661_2_)
-
onOffspringSpawnedFromEgg
protected void onOffspringSpawnedFromEgg(PlayerEntity p_213406_1_, MobEntity p_213406_2_)
-
mobInteract
protected ActionResultType mobInteract(PlayerEntity p_230254_1_, Hand p_230254_2_)
-
isWithinRestriction
public boolean isWithinRestriction()
-
isWithinRestriction
public boolean isWithinRestriction(BlockPos p_213389_1_)
-
restrictTo
public void restrictTo(BlockPos p_213390_1_, int p_213390_2_)
-
getRestrictCenter
public BlockPos getRestrictCenter()
-
getRestrictRadius
public float getRestrictRadius()
-
hasRestriction
public boolean hasRestriction()
-
convertTo
@Nullable public <T extends MobEntity> T convertTo(EntityType<T> p_233656_1_, boolean p_233656_2_)
-
tickLeash
protected void tickLeash()
-
dropLeash
public void dropLeash(boolean p_110160_1_, boolean p_110160_2_)
-
canBeLeashed
public boolean canBeLeashed(PlayerEntity p_184652_1_)
-
isLeashed
public boolean isLeashed()
-
getLeashHolder
@Nullable public Entity getLeashHolder()
-
setLeashedTo
public void setLeashedTo(Entity p_110162_1_, boolean p_110162_2_)
-
setDelayedLeashHolderId
public void setDelayedLeashHolderId(int p_213381_1_)
-
startRiding
public boolean startRiding(Entity p_184205_1_, boolean p_184205_2_)
- Overrides:
startRiding
in classEntity
-
restoreLeashFromSave
private void restoreLeashFromSave()
-
setSlot
public boolean setSlot(int p_174820_1_, ItemStack p_174820_2_)
-
isControlledByLocalInstance
public boolean isControlledByLocalInstance()
- Overrides:
isControlledByLocalInstance
in classEntity
-
isValidSlotForItem
public static boolean isValidSlotForItem(EquipmentSlotType p_184648_0_, ItemStack p_184648_1_)
-
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
public HandSide getMainArm()
- Specified by:
getMainArm
in classLivingEntity
-
canAttack
public boolean canAttack(LivingEntity p_213336_1_)
- Overrides:
canAttack
in classLivingEntity
-
doHurtTarget
public boolean doHurtTarget(Entity p_70652_1_)
- 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
protected void jumpInLiquid(ITag<Fluid> p_180466_1_)
- Overrides:
jumpInLiquid
in classLivingEntity
-
removeAfterChangingDimensions
protected void removeAfterChangingDimensions()
- Overrides:
removeAfterChangingDimensions
in classEntity
-
-