public class FoxEntity extends AnimalEntity
| Modifier and Type | Class and 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 |
AgeableEntity.AgeableDataEntity.IMoveCallback| Modifier and Type | Field and Description |
|---|---|
private Goal |
attackAnimals |
private Goal |
attackFish |
private Goal |
attackTurtles |
private float |
crouchAmount |
private float |
crouchAmountO |
private int |
eatTicks |
private static DataParameter<java.lang.Byte> |
FOX_FLAGS |
private static DataParameter<java.lang.Integer> |
FOX_TYPE |
private float |
interestedAngle |
private float |
interestedAngleO |
private static java.util.function.Predicate<Entity> |
IS_PREY |
private static java.util.function.Predicate<Entity> |
SHOULD_AVOID |
private static java.util.function.Predicate<Entity> |
STALKABLE_PREY |
private static java.util.function.Predicate<ItemEntity> |
TRUSTED_TARGET_SELECTOR |
private static DataParameter<java.util.Optional<java.util.UUID>> |
TRUSTED_UUID_MAIN |
private static DataParameter<java.util.Optional<java.util.UUID>> |
TRUSTED_UUID_SECONDARY |
forcedAge, forcedAgeTimer, growingAgeexperienceValue, goalSelector, inventoryArmorDropChances, inventoryHandsDropChances, jumpController, livingSoundTime, lookController, moveController, navigator, targetSelectoractiveItemStack, activeItemStackUseCount, arrowHitTimer, attackedAtYaw, attackingPlayer, beeStingRemovalCooldown, brain, dead, deathTime, ENTITY_GRAVITY, hurtTime, idleTime, interpTargetHeadYaw, interpTargetPitch, interpTargetX, interpTargetY, interpTargetYaw, interpTargetZ, interpTicksHead, isJumping, isSwingInProgress, jumpMovementFactor, lastDamage, limbSwing, limbSwingAmount, LIVING_FLAGS, maxHurtResistantTime, maxHurtTime, movedDistance, moveForward, moveStrafing, moveVertical, NAMETAG_DISTANCE, newPosRotationIncrements, onGroundSpeedFactor, prevLimbSwingAmount, prevMovedDistance, prevOnGroundSpeedFactor, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, randomUnused1, randomUnused2, recentlyHit, renderYawOffset, rotationYawHead, scoreValue, SLEEPING_SIZE, spinAttackDuration, SWIM_SPEED, swingingHand, swingProgress, swingProgressInt, ticksElytraFlying, ticksSinceLastSwing, unused180addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inLava, inPortal, inWater, isAirBorne, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, LOGGER, motionMultiplier, noClip, onGround, portalCounter, POSE, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, worldDUMMY| Constructor and Description |
|---|
FoxEntity(EntityType<? extends FoxEntity> type,
World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addTrustedUUID(java.util.UUID uuidIn) |
protected int |
calculateFallDamage(float p_225508_1_,
float p_225508_2_) |
private boolean |
canEatItem(ItemStack itemStackIn) |
protected boolean |
canEquipItem(ItemStack stack) |
boolean |
canPickUpItem(ItemStack itemstackIn) |
protected void |
consumeItemFromStack(PlayerEntity player,
ItemStack stack) |
FoxEntity |
createChild(AgeableEntity ageable) |
private void |
func_213454_em() |
void |
func_213461_s(boolean p_213461_1_) |
boolean |
func_213467_eg() |
float |
func_213475_v(float p_213475_1_) |
private boolean |
func_213478_eo() |
boolean |
func_213480_dY() |
static boolean |
func_213481_a(FoxEntity p_213481_0_,
LivingEntity p_213481_1_) |
boolean |
func_213490_ee() |
private void |
func_213499_en() |
void |
func_213502_u(boolean p_213502_1_) |
float |
func_213503_w(float p_213503_1_) |
protected SoundEvent |
getAmbientSound() |
protected SoundEvent |
getDeathSound() |
SoundEvent |
getEatSound(ItemStack itemStackIn) |
private boolean |
getFoxFlag(int p_213507_1_) |
protected SoundEvent |
getHurtSound(DamageSource damageSourceIn) |
protected float |
getStandingEyeHeight(Pose poseIn,
EntitySize sizeIn) |
private java.util.List<java.util.UUID> |
getTrustedUUIDs() |
FoxEntity.Type |
getVariantType() |
void |
handleStatusUpdate(byte id) |
boolean |
isBreedingItem(ItemStack stack) |
boolean |
isCrouching() |
private boolean |
isFoxAggroed() |
protected boolean |
isMovementBlocked() |
boolean |
isSitting() |
boolean |
isSleeping() |
boolean |
isStuck() |
private boolean |
isTrustedUUID(java.util.UUID p_213468_1_) |
void |
livingTick() |
protected void |
onChildSpawnFromEgg(PlayerEntity playerIn,
AgeableEntity child) |
ILivingEntityData |
onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
void |
playAmbientSound() |
void |
readAdditional(CompoundNBT compound) |
protected void |
registerAttributes() |
protected void |
registerData() |
protected void |
registerGoals() |
private void |
setAttackGoals() |
void |
setAttackTarget(LivingEntity entitylivingbaseIn) |
void |
setCrouching(boolean p_213451_1_) |
protected void |
setEquipmentBasedOnDifficulty(DifficultyInstance difficulty) |
private void |
setFoxAggroed(boolean p_213482_1_) |
private void |
setFoxFlag(int p_213505_1_,
boolean p_213505_2_) |
void |
setSitting(boolean p_213466_1_) |
private void |
setSleeping(boolean p_213485_1_) |
private void |
setStuck(boolean p_213492_1_) |
private void |
setVariantType(FoxEntity.Type typeIn) |
protected void |
spawnDrops(DamageSource damageSourceIn) |
private void |
spawnItem(ItemStack stackIn) |
private void |
spitOutItem(ItemStack stackIn) |
void |
tick() |
protected void |
updateEquipmentIfNeeded(ItemEntity itemEntity) |
void |
writeAdditional(CompoundNBT compound) |
attackEntityFrom, canAnimalSpawn, canBreed, canDespawn, canMateWith, getBlockPathWeight, getExperiencePoints, getLoveCause, getTalkInterval, getYOffset, isInLove, processInteract, resetInLove, setInLove, setInLove, updateAITasksaddGrowth, ageUp, getGrowingAge, isChild, notifyDataManagerChange, onGrowingAdult, setGrowingAgecanSpawn, followLeashSpeed, getBlockPathWeight, hasPath, onLeashDistance, updateLeashedStateattackEntityAsMob, baseTick, canAttack, canAttack, canBeLeashedTo, canBeSteered, canPassengerSteer, canPickUpLoot, canSpawnOn, checkDespawn, clearLeashed, createBodyController, createNavigator, detachHome, dropLoot, dropSpecialItems, eatGrassBonus, enablePersistence, faceEntity, getArmorByChance, getArmorInventoryList, getAttackTarget, getDropChance, getEntitySenses, getFaceRotSpeed, getHeldEquipment, getHomePosition, getHorizontalFaceSpeed, getItemStackFromSlot, getJumpController, getLeashed, getLeashHolder, getLookController, getLootContextBuilder, getLootTable, getLootTableResourceLocation, getMaxFallHeight, getMaximumHomeDistance, getMaxSpawnedInChunk, getMoveHelper, getNavigator, getPathPriority, getPrimaryHand, getSlotForItemStack, getVerticalFaceSpeed, handleFluidJump, isAggressive, isAIDisabled, isDespawnPeaceful, isHolding, isInDaylight, isItemStackInSlot, isLeftHanded, isMaxGroupSize, isNoDespawnRequired, isNotColliding, isServerWorld, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, playHurtSound, preventDespawn, processInitialInteract, replaceItemInInventory, sendDebugPackets, setAggroed, setAIMoveSpeed, setCanPickUpLoot, setDropChance, setEnchantmentBasedOnDifficulty, setHomePosAndDistance, setItemStackToSlot, setLeashHolder, setLeftHanded, setMoveForward, setMoveStrafing, setMoveVertical, setNoAI, setPathPriority, setVehicleEntityId, shouldExchangeEquipment, spawnExplosionParticle, startRiding, updateDistance, updateEntityActionState, updateMovementGoalFlagsaddPotionEffect, applyArmorCalculations, applyEntityCollision, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attemptTeleport, blockUsingShield, canAttack, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBeRiddenInWater, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, clearBedPosition, collideWithEntity, collideWithNearbyEntities, constructKnockBackVector, createBrain, createSpawnPacket, createWitherRose, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, determineNextAir, dropExperience, dropInventory, findAmmo, frostWalk, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getAIMoveSpeed, getAlwaysRenderNameTagForRender, getArmorCoverPercentage, getArrowCountInEntity, getAttackingEntity, getAttribute, getAttributes, getBedDirection, getBedPosition, getBeeStingCount, getBlockState, getBrain, getCapability, getCombatTracker, getCreatureAttribute, getDrinkSound, getEyeHeight, getFallSound, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getMaxHealth, getRenderScale, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSize, getSoundPitch, getSoundVolume, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getVisibilityMultiplier, getWaterSlowDown, getYaw, handleFluidSneak, hasItemInSlot, heal, isActiveItemStackBlocking, isActualySwimming, isAlive, isElytraFlying, isEntityInsideOpaqueBlock, isEntityUndead, isHandActive, isOnLadder, isPlayer, isPotionActive, isPotionApplicable, isSpinAttacking, isSuppressingSlidingDownLadder, jump, knockBack, lookAt, markPotionsDirty, markVelocityChanged, onChangedPotionEffect, onDeath, onDeathUpdate, onFinishedPotionEffect, onFoodEaten, onItemPickup, onItemUseFinish, onKillCommand, onLivingFall, onNewPotionEffect, outOfWorld, performHurtAnimation, playEquipSound, playFallSound, remove, removeActivePotionEffect, removePotionEffect, resetActiveHand, resetPotionEffectMetadata, sendBreakAnimation, sendBreakAnimation, sendEndCombat, sendEnterCombat, setAbsorptionAmount, setActiveHand, setArrowCountInEntity, setBedPosition, setBeeStingCount, setHeadRotation, setHealth, setHeldItem, setIdleTime, setJumping, setLastAttackedEntity, setLivingFlag, setPartying, setPositionAndRotationDirect, setRenderYawOffset, setRevengeTarget, setRotationYawHead, setSprinting, shouldRiderFaceForward, spinAttack, startSleeping, startSpinAttack, stopActiveHand, stopRiding, swing, swingArm, travel, triggerItemUseEffects, updateArmSwingProgress, updateFallState, updatePotionEffects, updatePotionMetadata, updateRidden, updateSpinAttack, wakeUpaddPassenger, addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyOrientationToEntity, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, awardKillScore, calculateUpVector, canBeAttackedWithItem, canBeRidden, canExplosionDestroyBlock, canFitPassenger, canRenderOnFire, canSwim, canTrample, canTriggerWalking, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, forceSetPosition, getAdjustedHorizontalFacing, getAir, getAllowedMovement, getBoundingBox, getBoundingBox, getBrightness, getCachedUniqueIdString, getCollisionBorderSize, getCollisionBoundingBox, getCollisionBox, getCommandSource, getControllingPassenger, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyePosition, getFireImmuneTicks, getFireTimer, getFlag, getForward, getHeight, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getJumpFactor, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxInPortalTime, getMirroredYaw, getMotion, getMountedYOffset, getName, getOnPosition, getPassengers, getPermissionLevel, getPersistentData, getPitch, getPitchYaw, getPortalCooldown, getPose, getPosition, getPositionUnderneath, getPositionVec, getPositionVector, getPosX, getPosXRandom, getPosXWidth, getPosY, getPosYEye, getPosYHeight, getPosYRandom, getPosZ, getPosZRandom, getPosZWidth, getProfessionName, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getScoreboardName, getSelfAndPassengers, getServer, getSoundCategory, getSpeedFactor, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeamColor, getTeleportDirection, getType, getUniqueID, getUpVector, getVectorForRotation, getWidth, handleFluidAcceleration, handlePistonMovement, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, horizontalMag, ignoreItemEntityData, isAddedToWorld, isBeingRidden, isBurning, isCustomNameVisible, isDescending, isDiscrete, isEntityEqual, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isVisuallySwimming, isWet, makeFlySound, maybeBackOffFromEdge, move, moveForced, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillEntity, onRemovedFromWorld, onStruckByLightning, pick, playFlySound, playSound, playStepSound, playSwimSound, positionRider, preparePlayerToSpawn, pushOutOfBlocks, read, recalculateSize, recenterBoundingBox, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, repositionDirectPassengers, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFireTimer, setFlag, setGlowing, setInLava, setInvisible, setInvulnerable, setLocationAndAngles, setMotion, setMotion, setMotionMultiplier, setNoGravity, setOnFireFromLava, setPacketCoordinates, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRawPosition, setRenderDistanceWeight, setRotation, setSilent, setSneaking, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, teleportKeepLoaded, toString, updatePassenger, updatePortal, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeIdareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSitgetCapabilityprivate static final DataParameter<java.lang.Integer> FOX_TYPE
private static final DataParameter<java.lang.Byte> FOX_FLAGS
private static final DataParameter<java.util.Optional<java.util.UUID>> TRUSTED_UUID_SECONDARY
private static final DataParameter<java.util.Optional<java.util.UUID>> TRUSTED_UUID_MAIN
private static final java.util.function.Predicate<ItemEntity> TRUSTED_TARGET_SELECTOR
private static final java.util.function.Predicate<Entity> STALKABLE_PREY
private static final java.util.function.Predicate<Entity> IS_PREY
private static final java.util.function.Predicate<Entity> SHOULD_AVOID
private Goal attackAnimals
private Goal attackTurtles
private Goal attackFish
private float interestedAngle
private float interestedAngleO
private float crouchAmount
private float crouchAmountO
private int eatTicks
public FoxEntity(EntityType<? extends FoxEntity> type, World worldIn)
protected void registerData()
registerData in class AgeableEntityprotected void registerGoals()
registerGoals in class MobEntitypublic SoundEvent getEatSound(ItemStack itemStackIn)
getEatSound in class LivingEntitypublic void livingTick()
livingTick in class AnimalEntityprotected boolean isMovementBlocked()
isMovementBlocked in class LivingEntityprivate boolean canEatItem(ItemStack itemStackIn)
protected void setEquipmentBasedOnDifficulty(DifficultyInstance difficulty)
setEquipmentBasedOnDifficulty in class MobEntitypublic void handleStatusUpdate(byte id)
handleStatusUpdate in class AnimalEntityprotected void registerAttributes()
registerAttributes in class MobEntitypublic FoxEntity createChild(AgeableEntity ageable)
createChild in class AgeableEntity@Nullable public ILivingEntityData onInitialSpawn(IWorld worldIn, DifficultyInstance difficultyIn, SpawnReason reason, @Nullable ILivingEntityData spawnDataIn, @Nullable CompoundNBT dataTag)
onInitialSpawn in class AgeableEntityprivate void setAttackGoals()
protected void consumeItemFromStack(PlayerEntity player, ItemStack stack)
consumeItemFromStack in class AnimalEntityprotected float getStandingEyeHeight(Pose poseIn, EntitySize sizeIn)
getStandingEyeHeight in class LivingEntitypublic FoxEntity.Type getVariantType()
private void setVariantType(FoxEntity.Type typeIn)
private java.util.List<java.util.UUID> getTrustedUUIDs()
private void addTrustedUUID(@Nullable
java.util.UUID uuidIn)
public void writeAdditional(CompoundNBT compound)
writeAdditional in class AnimalEntitypublic void readAdditional(CompoundNBT compound)
readAdditional in class AnimalEntitypublic boolean isSitting()
public void setSitting(boolean p_213466_1_)
public boolean isStuck()
private void setStuck(boolean p_213492_1_)
private boolean isFoxAggroed()
private void setFoxAggroed(boolean p_213482_1_)
public boolean isSleeping()
isSleeping in class LivingEntityprivate void setSleeping(boolean p_213485_1_)
private void setFoxFlag(int p_213505_1_,
boolean p_213505_2_)
private boolean getFoxFlag(int p_213507_1_)
public boolean canPickUpItem(ItemStack itemstackIn)
canPickUpItem in class MobEntityprotected boolean canEquipItem(ItemStack stack)
canEquipItem in class MobEntityprivate void spitOutItem(ItemStack stackIn)
private void spawnItem(ItemStack stackIn)
protected void updateEquipmentIfNeeded(ItemEntity itemEntity)
updateEquipmentIfNeeded in class MobEntitypublic boolean isBreedingItem(ItemStack stack)
isBreedingItem in class AnimalEntityprotected void onChildSpawnFromEgg(PlayerEntity playerIn, AgeableEntity child)
onChildSpawnFromEgg in class AgeableEntitypublic boolean func_213480_dY()
public void func_213461_s(boolean p_213461_1_)
public boolean func_213490_ee()
public void setCrouching(boolean p_213451_1_)
public boolean isCrouching()
isCrouching in class Entitypublic void func_213502_u(boolean p_213502_1_)
public boolean func_213467_eg()
public float func_213475_v(float p_213475_1_)
public float func_213503_w(float p_213503_1_)
public void setAttackTarget(@Nullable
LivingEntity entitylivingbaseIn)
setAttackTarget in class MobEntityprotected int calculateFallDamage(float p_225508_1_,
float p_225508_2_)
calculateFallDamage in class LivingEntityprivate void func_213454_em()
private void func_213499_en()
private boolean func_213478_eo()
public void playAmbientSound()
playAmbientSound in class MobEntity@Nullable protected SoundEvent getAmbientSound()
getAmbientSound in class MobEntity@Nullable protected SoundEvent getHurtSound(DamageSource damageSourceIn)
getHurtSound in class LivingEntity@Nullable protected SoundEvent getDeathSound()
getDeathSound in class LivingEntityprivate boolean isTrustedUUID(java.util.UUID p_213468_1_)
protected void spawnDrops(DamageSource damageSourceIn)
spawnDrops in class LivingEntitypublic static boolean func_213481_a(FoxEntity p_213481_0_, LivingEntity p_213481_1_)