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 classFoxEntity.AlertablePredicate(package private) classFoxEntity.BaseGoal(package private) classFoxEntity.BiteGoalclassFoxEntity.EatBerriesGoal(package private) classFoxEntity.FindItemsGoal(package private) classFoxEntity.FindShelterGoal(package private) classFoxEntity.FollowGoal(package private) classFoxEntity.FollowTargetGoalstatic classFoxEntity.FoxData(package private) classFoxEntity.JumpGoalclassFoxEntity.LookHelperController(package private) classFoxEntity.MateGoal(package private) classFoxEntity.MoveHelperController(package private) classFoxEntity.PanicGoalclassFoxEntity.PounceGoal(package private) classFoxEntity.RevengeGoal(package private) classFoxEntity.SitAndLookGoal(package private) classFoxEntity.SleepGoal(package private) classFoxEntity.StrollGoal(package private) classFoxEntity.SwimGoalstatic classFoxEntity.Type(package private) classFoxEntity.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_ITEMSprivate static java.util.function.Predicate<Entity>AVOID_PLAYERSprivate floatcrouchAmountprivate floatcrouchAmountOprivate static DataParameter<java.lang.Byte>DATA_FLAGS_IDprivate static DataParameter<java.util.Optional<java.util.UUID>>DATA_TRUSTED_ID_0private static DataParameter<java.util.Optional<java.util.UUID>>DATA_TRUSTED_ID_1private static DataParameter<java.lang.Integer>DATA_TYPE_IDprivate GoalfishTargetGoalprivate floatinterestedAngleprivate floatinterestedAngleOprivate GoallandTargetGoalprivate static java.util.function.Predicate<Entity>STALKABLE_PREYprivate intticksSinceEatenprivate static java.util.function.Predicate<Entity>TRUSTED_TARGET_SELECTORprivate GoalturtleEggTargetGoal-
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 voidaddAdditionalSaveData(CompoundNBT p_213281_1_)private voidaddTrustedUUID(java.util.UUID p_213465_1_)voidaiStep()protected intcalculateFallDamage(float p_225508_1_, float p_225508_2_)private booleancanEat(ItemStack p_213464_1_)booleancanHoldItem(ItemStack p_175448_1_)private booleancanMove()booleancanTakeItem(ItemStack p_213365_1_)private voidclearStates()static AttributeModifierMap.MutableAttributecreateAttributes()protected voiddefineSynchedData()protected voiddropAllDeathLoot(DamageSource p_213345_1_)private voiddropItemStack(ItemStack p_213486_1_)ILivingEntityDatafinalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)protected SoundEventgetAmbientSound()FoxEntitygetBreedOffspring(ServerWorld p_241840_1_, AgeableEntity p_241840_2_)floatgetCrouchAmount(float p_213503_1_)protected SoundEventgetDeathSound()SoundEventgetEatingSound(ItemStack p_213353_1_)private booleangetFlag(int p_213507_1_)FoxEntity.TypegetFoxType()floatgetHeadRollAngle(float p_213475_1_)protected SoundEventgetHurtSound(DamageSource p_184601_1_)Vector3dgetLeashOffset()protected floatgetStandingEyeHeight(Pose p_213348_1_, EntitySize p_213348_2_)private java.util.List<java.util.UUID>getTrustedUUIDs()voidhandleEntityEvent(byte p_70103_1_)booleanisCrouching()private booleanisDefending()booleanisFaceplanted()booleanisFood(ItemStack p_70877_1_)booleanisFullyCrouched()protected booleanisImmobile()booleanisInterested()static booleanisPathClear(FoxEntity p_213481_0_, LivingEntity p_213481_1_)booleanisPouncing()booleanisSitting()booleanisSleeping()protected voidonOffspringSpawnedFromEgg(PlayerEntity p_213406_1_, MobEntity p_213406_2_)protected voidpickUpItem(ItemEntity p_175445_1_)voidplayAmbientSound()protected voidpopulateDefaultEquipmentSlots(DifficultyInstance p_180481_1_)voidreadAdditionalSaveData(CompoundNBT p_70037_1_)protected voidregisterGoals()private voidsetDefending(boolean p_213482_1_)private voidsetFaceplanted(boolean p_213492_1_)private voidsetFlag(int p_213505_1_, boolean p_213505_2_)private voidsetFoxType(FoxEntity.Type p_213474_1_)voidsetIsCrouching(boolean p_213451_1_)voidsetIsInterested(boolean p_213502_1_)voidsetIsPouncing(boolean p_213461_1_)voidsetSitting(boolean p_213466_1_)private voidsetSleeping(boolean p_213485_1_)voidsetTarget(LivingEntity p_70624_1_)private voidsetTargetGoals()private voidspitOutItem(ItemStack p_213495_1_)voidtick()private booleantrusts(java.util.UUID p_213468_1_)protected voidusePlayerItem(PlayerEntity p_175505_1_, ItemStack p_175505_2_)private voidwakeUp()-
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:
defineSynchedDatain classAgeableEntity
-
registerGoals
protected void registerGoals()
- Overrides:
registerGoalsin classMobEntity
-
getEatingSound
public SoundEvent getEatingSound(ItemStack p_213353_1_)
- Overrides:
getEatingSoundin classLivingEntity
-
aiStep
public void aiStep()
- Overrides:
aiStepin classAnimalEntity
-
isImmobile
protected boolean isImmobile()
- Overrides:
isImmobilein classLivingEntity
-
canEat
private boolean canEat(ItemStack p_213464_1_)
-
populateDefaultEquipmentSlots
protected void populateDefaultEquipmentSlots(DifficultyInstance p_180481_1_)
- Overrides:
populateDefaultEquipmentSlotsin classMobEntity
-
handleEntityEvent
public void handleEntityEvent(byte p_70103_1_)
- Overrides:
handleEntityEventin classAnimalEntity
-
createAttributes
public static AttributeModifierMap.MutableAttribute createAttributes()
-
getBreedOffspring
public FoxEntity getBreedOffspring(ServerWorld p_241840_1_, AgeableEntity p_241840_2_)
- Specified by:
getBreedOffspringin 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:
finalizeSpawnin classAgeableEntity
-
setTargetGoals
private void setTargetGoals()
-
usePlayerItem
protected void usePlayerItem(PlayerEntity p_175505_1_, ItemStack p_175505_2_)
- Overrides:
usePlayerItemin classAnimalEntity
-
getStandingEyeHeight
protected float getStandingEyeHeight(Pose p_213348_1_, EntitySize p_213348_2_)
- Overrides:
getStandingEyeHeightin 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:
addAdditionalSaveDatain classAnimalEntity
-
readAdditionalSaveData
public void readAdditionalSaveData(CompoundNBT p_70037_1_)
- Overrides:
readAdditionalSaveDatain 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:
isSleepingin 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:
canTakeItemin classMobEntity
-
canHoldItem
public boolean canHoldItem(ItemStack p_175448_1_)
- Overrides:
canHoldItemin 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:
pickUpItemin classMobEntity
-
isFood
public boolean isFood(ItemStack p_70877_1_)
- Overrides:
isFoodin classAnimalEntity
-
onOffspringSpawnedFromEgg
protected void onOffspringSpawnedFromEgg(PlayerEntity p_213406_1_, MobEntity p_213406_2_)
- Overrides:
onOffspringSpawnedFromEggin 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:
isCrouchingin 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:
calculateFallDamagein classLivingEntity
-
wakeUp
private void wakeUp()
-
clearStates
private void clearStates()
-
canMove
private boolean canMove()
-
playAmbientSound
public void playAmbientSound()
- Overrides:
playAmbientSoundin classMobEntity
-
getAmbientSound
@Nullable protected SoundEvent getAmbientSound()
- Overrides:
getAmbientSoundin classMobEntity
-
getHurtSound
@Nullable protected SoundEvent getHurtSound(DamageSource p_184601_1_)
- Overrides:
getHurtSoundin classLivingEntity
-
getDeathSound
@Nullable protected SoundEvent getDeathSound()
- Overrides:
getDeathSoundin classLivingEntity
-
trusts
private boolean trusts(java.util.UUID p_213468_1_)
-
dropAllDeathLoot
protected void dropAllDeathLoot(DamageSource p_213345_1_)
- Overrides:
dropAllDeathLootin classLivingEntity
-
isPathClear
public static boolean isPathClear(FoxEntity p_213481_0_, LivingEntity p_213481_1_)
-
getLeashOffset
public Vector3d getLeashOffset()
- Overrides:
getLeashOffsetin classEntity
-
-