Package net.minecraft.entity.passive
Class FoxEntity
- java.lang.Object
-
- All Implemented Interfaces:
ICommandSource
,INameable
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeEntity
,INBTSerializable<CompoundNBT>
public class FoxEntity extends AnimalEntity
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
FoxEntity.AlertablePredicate
(package private) class
FoxEntity.BaseGoal
(package private) class
FoxEntity.BiteGoal
class
FoxEntity.EatBerriesGoal
(package private) class
FoxEntity.FindItemsGoal
(package private) class
FoxEntity.FindShelterGoal
(package private) class
FoxEntity.FollowGoal
(package private) class
FoxEntity.FollowTargetGoal
static class
FoxEntity.FoxData
(package private) class
FoxEntity.JumpGoal
class
FoxEntity.LookHelperController
(package private) class
FoxEntity.MateGoal
(package private) class
FoxEntity.MoveHelperController
(package private) class
FoxEntity.PanicGoal
class
FoxEntity.PounceGoal
(package private) class
FoxEntity.RevengeGoal
(package private) class
FoxEntity.SitAndLookGoal
(package private) class
FoxEntity.SleepGoal
(package private) class
FoxEntity.StrollGoal
(package private) class
FoxEntity.SwimGoal
static class
FoxEntity.Type
(package private) class
FoxEntity.WatchGoal
-
Nested classes/interfaces inherited from class net.minecraft.entity.AgeableEntity
AgeableEntity.AgeableData
-
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.IMoveCallback
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.function.Predicate<ItemEntity>
ALLOWED_ITEMS
private static java.util.function.Predicate<Entity>
AVOID_PLAYERS
private float
crouchAmount
private float
crouchAmountO
private static DataParameter<java.lang.Byte>
DATA_FLAGS_ID
private static DataParameter<java.util.Optional<java.util.UUID>>
DATA_TRUSTED_ID_0
private static DataParameter<java.util.Optional<java.util.UUID>>
DATA_TRUSTED_ID_1
private static DataParameter<java.lang.Integer>
DATA_TYPE_ID
private Goal
fishTargetGoal
private float
interestedAngle
private float
interestedAngleO
private Goal
landTargetGoal
private static java.util.function.Predicate<Entity>
STALKABLE_PREY
private int
ticksSinceEaten
private static java.util.function.Predicate<Entity>
TRUSTED_TARGET_SELECTOR
private Goal
turtleEggTargetGoal
-
Fields inherited from class net.minecraft.entity.AgeableEntity
age, forcedAge, forcedAgeTimer
-
Fields inherited from class net.minecraft.entity.MobEntity
ambientSoundTime, armorDropChances, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelector, 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 Constructor Description FoxEntity(EntityType<? extends FoxEntity> p_i50271_1_, World p_i50271_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAdditionalSaveData(CompoundNBT p_213281_1_)
private void
addTrustedUUID(java.util.UUID p_213465_1_)
void
aiStep()
protected int
calculateFallDamage(float p_225508_1_, float p_225508_2_)
private boolean
canEat(ItemStack p_213464_1_)
boolean
canHoldItem(ItemStack p_175448_1_)
private boolean
canMove()
boolean
canTakeItem(ItemStack p_213365_1_)
private void
clearStates()
static AttributeModifierMap.MutableAttribute
createAttributes()
protected void
defineSynchedData()
protected void
dropAllDeathLoot(DamageSource p_213345_1_)
private void
dropItemStack(ItemStack p_213486_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()
FoxEntity
getBreedOffspring(ServerWorld p_241840_1_, AgeableEntity p_241840_2_)
float
getCrouchAmount(float p_213503_1_)
protected SoundEvent
getDeathSound()
SoundEvent
getEatingSound(ItemStack p_213353_1_)
private boolean
getFlag(int p_213507_1_)
FoxEntity.Type
getFoxType()
float
getHeadRollAngle(float p_213475_1_)
protected SoundEvent
getHurtSound(DamageSource p_184601_1_)
Vector3d
getLeashOffset()
protected float
getStandingEyeHeight(Pose p_213348_1_, EntitySize p_213348_2_)
private java.util.List<java.util.UUID>
getTrustedUUIDs()
void
handleEntityEvent(byte p_70103_1_)
boolean
isCrouching()
private boolean
isDefending()
boolean
isFaceplanted()
boolean
isFood(ItemStack p_70877_1_)
boolean
isFullyCrouched()
protected boolean
isImmobile()
boolean
isInterested()
static boolean
isPathClear(FoxEntity p_213481_0_, LivingEntity p_213481_1_)
boolean
isPouncing()
boolean
isSitting()
boolean
isSleeping()
protected void
onOffspringSpawnedFromEgg(PlayerEntity p_213406_1_, MobEntity p_213406_2_)
protected void
pickUpItem(ItemEntity p_175445_1_)
void
playAmbientSound()
protected void
populateDefaultEquipmentSlots(DifficultyInstance p_180481_1_)
void
readAdditionalSaveData(CompoundNBT p_70037_1_)
protected void
registerGoals()
private void
setDefending(boolean p_213482_1_)
private void
setFaceplanted(boolean p_213492_1_)
private void
setFlag(int p_213505_1_, boolean p_213505_2_)
private void
setFoxType(FoxEntity.Type p_213474_1_)
void
setIsCrouching(boolean p_213451_1_)
void
setIsInterested(boolean p_213502_1_)
void
setIsPouncing(boolean p_213461_1_)
void
setSitting(boolean p_213466_1_)
private void
setSleeping(boolean p_213485_1_)
void
setTarget(LivingEntity p_70624_1_)
private void
setTargetGoals()
private void
spitOutItem(ItemStack p_213495_1_)
void
tick()
private boolean
trusts(java.util.UUID p_213468_1_)
protected void
usePlayerItem(PlayerEntity p_175505_1_, ItemStack p_175505_2_)
private void
wakeUp()
-
Methods inherited from class net.minecraft.entity.passive.AnimalEntity
canFallInLove, canMate, checkAnimalSpawnRules, customServerAiStep, getAmbientSoundInterval, getExperienceReward, getInLoveTime, getLoveCause, getMyRidingOffset, getWalkTargetValue, hurt, isInLove, mobInteract, removeWhenFarAway, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding
-
Methods inherited from class net.minecraft.entity.AgeableEntity
ageBoundaryReached, ageUp, ageUp, canBreed, getAge, isBaby, onSyncedDataUpdated, setAge, setBaby
-
Methods inherited from class net.minecraft.entity.CreatureEntity
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, onLeashDistance, tickLeash
-
Methods inherited from class net.minecraft.entity.MobEntity
ate, baseTick, canAttack, canAttackType, canBeControlledByRider, canBeLeashed, canCutCorner, canFireProjectileWeapon, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, convertTo, createBodyControl, createLootContext, createMobAttributes, createNavigation, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getEquipmentSlotForItem, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMoveControl, getNavigation, getPathfindingMalus, getRestrictCenter, getRestrictRadius, getSensing, getTarget, hasRestriction, interact, isAggressive, isControlledByLocalInstance, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isValidSlotForItem, isWithinRestriction, isWithinRestriction, jumpInLiquid, lookAt, playHurtSound, populateDefaultEquipmentEnchantments, removeAfterChangingDimensions, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSlot, setSpeed, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, tickHeadTurn, updateControlFlags, wantsToPickUp
-
Methods inherited from class net.minecraft.entity.LivingEntity
actuallyHurt, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, canAttack, canBeAffected, canBreatheUnderwater, canSee, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doPush, dropEquipment, dropExperience, eat, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAddEntityPacket, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDimensions, getDismountPoses, getDrinkingSound, getEffect, getEyeHeight, getFallDamageSound, getFallFlyingTicks, getFeetBlockState, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSoundVolume, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, heal, hurtArmor, hurtCurrentlyUsedShield, increaseAirSupply, invalidateCaps, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isDeadOrDying, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, markHurt, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onItemPickup, onLeaveCombat, onSoulSpeedBlock, 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, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, 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, 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, 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_TYPE_ID
private static final DataParameter<java.lang.Integer> DATA_TYPE_ID
-
DATA_FLAGS_ID
private static final DataParameter<java.lang.Byte> DATA_FLAGS_ID
-
DATA_TRUSTED_ID_0
private static final DataParameter<java.util.Optional<java.util.UUID>> DATA_TRUSTED_ID_0
-
DATA_TRUSTED_ID_1
private static final DataParameter<java.util.Optional<java.util.UUID>> DATA_TRUSTED_ID_1
-
ALLOWED_ITEMS
private static final java.util.function.Predicate<ItemEntity> ALLOWED_ITEMS
-
TRUSTED_TARGET_SELECTOR
private static final java.util.function.Predicate<Entity> TRUSTED_TARGET_SELECTOR
-
STALKABLE_PREY
private static final java.util.function.Predicate<Entity> STALKABLE_PREY
-
AVOID_PLAYERS
private static final java.util.function.Predicate<Entity> AVOID_PLAYERS
-
landTargetGoal
private Goal landTargetGoal
-
turtleEggTargetGoal
private Goal turtleEggTargetGoal
-
fishTargetGoal
private Goal fishTargetGoal
-
interestedAngle
private float interestedAngle
-
interestedAngleO
private float interestedAngleO
-
crouchAmount
private float crouchAmount
-
crouchAmountO
private float crouchAmountO
-
ticksSinceEaten
private int ticksSinceEaten
-
-
Constructor Detail
-
FoxEntity
public FoxEntity(EntityType<? extends FoxEntity> p_i50271_1_, World p_i50271_2_)
-
-
Method Detail
-
defineSynchedData
protected void defineSynchedData()
- Overrides:
defineSynchedData
in classAgeableEntity
-
registerGoals
protected void registerGoals()
- Overrides:
registerGoals
in classMobEntity
-
getEatingSound
public SoundEvent getEatingSound(ItemStack p_213353_1_)
- Overrides:
getEatingSound
in classLivingEntity
-
aiStep
public void aiStep()
- Overrides:
aiStep
in classAnimalEntity
-
isImmobile
protected boolean isImmobile()
- Overrides:
isImmobile
in classLivingEntity
-
canEat
private boolean canEat(ItemStack p_213464_1_)
-
populateDefaultEquipmentSlots
protected void populateDefaultEquipmentSlots(DifficultyInstance p_180481_1_)
- Overrides:
populateDefaultEquipmentSlots
in classMobEntity
-
handleEntityEvent
public void handleEntityEvent(byte p_70103_1_)
- Overrides:
handleEntityEvent
in classAnimalEntity
-
createAttributes
public static AttributeModifierMap.MutableAttribute createAttributes()
-
getBreedOffspring
public FoxEntity getBreedOffspring(ServerWorld p_241840_1_, AgeableEntity p_241840_2_)
- Specified by:
getBreedOffspring
in classAgeableEntity
-
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_)
- Overrides:
finalizeSpawn
in classAgeableEntity
-
setTargetGoals
private void setTargetGoals()
-
usePlayerItem
protected void usePlayerItem(PlayerEntity p_175505_1_, ItemStack p_175505_2_)
- Overrides:
usePlayerItem
in classAnimalEntity
-
getStandingEyeHeight
protected float getStandingEyeHeight(Pose p_213348_1_, EntitySize p_213348_2_)
- Overrides:
getStandingEyeHeight
in classLivingEntity
-
getFoxType
public FoxEntity.Type getFoxType()
-
setFoxType
private void setFoxType(FoxEntity.Type p_213474_1_)
-
getTrustedUUIDs
private java.util.List<java.util.UUID> getTrustedUUIDs()
-
addTrustedUUID
private void addTrustedUUID(@Nullable java.util.UUID p_213465_1_)
-
addAdditionalSaveData
public void addAdditionalSaveData(CompoundNBT p_213281_1_)
- Overrides:
addAdditionalSaveData
in classAnimalEntity
-
readAdditionalSaveData
public void readAdditionalSaveData(CompoundNBT p_70037_1_)
- Overrides:
readAdditionalSaveData
in classAnimalEntity
-
isSitting
public boolean isSitting()
-
setSitting
public void setSitting(boolean p_213466_1_)
-
isFaceplanted
public boolean isFaceplanted()
-
setFaceplanted
private void setFaceplanted(boolean p_213492_1_)
-
isDefending
private boolean isDefending()
-
setDefending
private void setDefending(boolean p_213482_1_)
-
isSleeping
public boolean isSleeping()
- Overrides:
isSleeping
in classLivingEntity
-
setSleeping
private void setSleeping(boolean p_213485_1_)
-
setFlag
private void setFlag(int p_213505_1_, boolean p_213505_2_)
-
getFlag
private boolean getFlag(int p_213507_1_)
-
canTakeItem
public boolean canTakeItem(ItemStack p_213365_1_)
- Overrides:
canTakeItem
in classMobEntity
-
canHoldItem
public boolean canHoldItem(ItemStack p_175448_1_)
- Overrides:
canHoldItem
in classMobEntity
-
spitOutItem
private void spitOutItem(ItemStack p_213495_1_)
-
dropItemStack
private void dropItemStack(ItemStack p_213486_1_)
-
pickUpItem
protected void pickUpItem(ItemEntity p_175445_1_)
- Overrides:
pickUpItem
in classMobEntity
-
isFood
public boolean isFood(ItemStack p_70877_1_)
- Overrides:
isFood
in classAnimalEntity
-
onOffspringSpawnedFromEgg
protected void onOffspringSpawnedFromEgg(PlayerEntity p_213406_1_, MobEntity p_213406_2_)
- Overrides:
onOffspringSpawnedFromEgg
in classMobEntity
-
isPouncing
public boolean isPouncing()
-
setIsPouncing
public void setIsPouncing(boolean p_213461_1_)
-
isFullyCrouched
public boolean isFullyCrouched()
-
setIsCrouching
public void setIsCrouching(boolean p_213451_1_)
-
isCrouching
public boolean isCrouching()
- Overrides:
isCrouching
in classEntity
-
setIsInterested
public void setIsInterested(boolean p_213502_1_)
-
isInterested
public boolean isInterested()
-
getHeadRollAngle
public float getHeadRollAngle(float p_213475_1_)
-
getCrouchAmount
public float getCrouchAmount(float p_213503_1_)
-
setTarget
public void setTarget(@Nullable LivingEntity p_70624_1_)
-
calculateFallDamage
protected int calculateFallDamage(float p_225508_1_, float p_225508_2_)
- Overrides:
calculateFallDamage
in classLivingEntity
-
wakeUp
private void wakeUp()
-
clearStates
private void clearStates()
-
canMove
private boolean canMove()
-
playAmbientSound
public void playAmbientSound()
- Overrides:
playAmbientSound
in classMobEntity
-
getAmbientSound
@Nullable protected SoundEvent getAmbientSound()
- Overrides:
getAmbientSound
in classMobEntity
-
getHurtSound
@Nullable protected SoundEvent getHurtSound(DamageSource p_184601_1_)
- Overrides:
getHurtSound
in classLivingEntity
-
getDeathSound
@Nullable protected SoundEvent getDeathSound()
- Overrides:
getDeathSound
in classLivingEntity
-
trusts
private boolean trusts(java.util.UUID p_213468_1_)
-
dropAllDeathLoot
protected void dropAllDeathLoot(DamageSource p_213345_1_)
- Overrides:
dropAllDeathLoot
in classLivingEntity
-
isPathClear
public static boolean isPathClear(FoxEntity p_213481_0_, LivingEntity p_213481_1_)
-
getLeashOffset
public Vector3d getLeashOffset()
- Overrides:
getLeashOffset
in classEntity
-
-