Package net.minecraft.entity.passive
Class FoxEntity
- All Implemented Interfaces:
ICommandSource
,INameable
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeEntity
,INBTSerializable<CompoundNBT>
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
(package private) class
(package private) class
class
(package private) class
(package private) class
(package private) class
(package private) class
static class
(package private) class
class
(package private) class
(package private) class
(package private) class
class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
static enum
(package private) class
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
Modifier and TypeFieldDescriptionprivate static final Predicate<ItemEntity>
private float
private float
private static final DataParameter<Byte>
private static final DataParameter<Optional<UUID>>
private static final DataParameter<Optional<UUID>>
private static final DataParameter<Integer>
private Goal
private float
private float
private Goal
private int
private Goal
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalSaveData
(CompoundNBT p_213281_1_) private void
addTrustedUUID
(UUID p_213465_1_) void
aiStep()
protected int
calculateFallDamage
(float p_225508_1_, float p_225508_2_) private boolean
boolean
canHoldItem
(ItemStack p_175448_1_) private boolean
canMove()
boolean
canTakeItem
(ItemStack p_213365_1_) private void
protected void
protected void
dropAllDeathLoot
(DamageSource p_213345_1_) private void
dropItemStack
(ItemStack p_213486_1_) finalizeSpawn
(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_) protected SoundEvent
getBreedOffspring
(ServerWorld p_241840_1_, AgeableEntity p_241840_2_) float
getCrouchAmount
(float p_213503_1_) protected SoundEvent
getEatingSound
(ItemStack p_213353_1_) private boolean
getFlag
(int p_213507_1_) float
getHeadRollAngle
(float p_213475_1_) protected SoundEvent
getHurtSound
(DamageSource p_184601_1_) protected float
getStandingEyeHeight
(Pose p_213348_1_, EntitySize p_213348_2_) void
handleEntityEvent
(byte p_70103_1_) boolean
private boolean
boolean
boolean
boolean
protected boolean
boolean
static boolean
isPathClear
(FoxEntity p_213481_0_, LivingEntity p_213481_1_) boolean
boolean
boolean
protected void
onOffspringSpawnedFromEgg
(PlayerEntity p_213406_1_, MobEntity p_213406_2_) protected void
pickUpItem
(ItemEntity p_175445_1_) void
protected void
populateDefaultEquipmentSlots
(DifficultyInstance p_180481_1_) void
readAdditionalSaveData
(CompoundNBT p_70037_1_) protected void
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
private void
spitOutItem
(ItemStack p_213495_1_) void
tick()
private boolean
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 Details
-
DATA_TYPE_ID
-
DATA_FLAGS_ID
-
DATA_TRUSTED_ID_0
-
DATA_TRUSTED_ID_1
-
ALLOWED_ITEMS
-
TRUSTED_TARGET_SELECTOR
-
STALKABLE_PREY
-
AVOID_PLAYERS
-
landTargetGoal
-
turtleEggTargetGoal
-
fishTargetGoal
-
interestedAngle
private float interestedAngle -
interestedAngleO
private float interestedAngleO -
crouchAmount
private float crouchAmount -
crouchAmountO
private float crouchAmountO -
ticksSinceEaten
private int ticksSinceEaten
-
-
Constructor Details
-
FoxEntity
-
-
Method Details
-
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedData
in classAgeableEntity
-
registerGoals
protected void registerGoals()- Overrides:
registerGoals
in classMobEntity
-
getEatingSound
- Overrides:
getEatingSound
in classLivingEntity
-
aiStep
public void aiStep()- Overrides:
aiStep
in classAnimalEntity
-
isImmobile
protected boolean isImmobile()- Overrides:
isImmobile
in classLivingEntity
-
canEat
-
populateDefaultEquipmentSlots
- Overrides:
populateDefaultEquipmentSlots
in classMobEntity
-
handleEntityEvent
public void handleEntityEvent(byte p_70103_1_) - Overrides:
handleEntityEvent
in classAnimalEntity
-
createAttributes
-
getBreedOffspring
- 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
- Overrides:
usePlayerItem
in classAnimalEntity
-
getStandingEyeHeight
- Overrides:
getStandingEyeHeight
in classLivingEntity
-
getFoxType
-
setFoxType
-
getTrustedUUIDs
-
addTrustedUUID
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveData
in classAnimalEntity
-
readAdditionalSaveData
- 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
- Overrides:
canTakeItem
in classMobEntity
-
canHoldItem
- Overrides:
canHoldItem
in classMobEntity
-
spitOutItem
-
dropItemStack
-
pickUpItem
- Overrides:
pickUpItem
in classMobEntity
-
tick
public void tick() -
isFood
- Overrides:
isFood
in classAnimalEntity
-
onOffspringSpawnedFromEgg
- 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
-
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
- Overrides:
getAmbientSound
in classMobEntity
-
getHurtSound
- Overrides:
getHurtSound
in classLivingEntity
-
getDeathSound
- Overrides:
getDeathSound
in classLivingEntity
-
trusts
-
dropAllDeathLoot
- Overrides:
dropAllDeathLoot
in classLivingEntity
-
isPathClear
-
getLeashOffset
- Overrides:
getLeashOffset
in classEntity
-