public class FoxEntity extends AnimalEntity
修飾子とタイプ | クラスと説明 |
---|---|
class |
FoxEntity.AlertablePredicate |
class |
FoxEntity.EatBerriesGoal |
static class |
FoxEntity.FoxData |
class |
FoxEntity.LookHelperController |
class |
FoxEntity.PounceGoal |
static class |
FoxEntity.Type |
AgeableEntity.AgeableData
Entity.IMoveCallback
forcedAge, forcedAgeTimer, growingAge
experienceValue, goalSelector, inventoryArmorDropChances, inventoryHandsDropChances, jumpController, livingSoundTime, lookController, moveController, navigator, targetSelector
activeItemStack, 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, unused180
addedToChunk, 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, world
DUMMY
コンストラクタと説明 |
---|
FoxEntity(EntityType<? extends FoxEntity> type,
World worldIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
protected boolean |
canEquipItem(ItemStack stack) |
boolean |
canPickUpItem(ItemStack itemstackIn) |
protected void |
consumeItemFromStack(PlayerEntity player,
ItemStack stack)
Decreases ItemStack size by one
|
FoxEntity |
createChild(AgeableEntity ageable) |
void |
func_213461_s(boolean p_213461_1_) |
boolean |
func_213467_eg() |
float |
func_213475_v(float p_213475_1_) |
boolean |
func_213480_dY() |
static boolean |
func_213481_a(FoxEntity p_213481_0_,
LivingEntity p_213481_1_) |
boolean |
func_213490_ee() |
void |
func_213502_u(boolean p_213502_1_) |
float |
func_213503_w(float p_213503_1_) |
protected int |
func_225508_e_(float p_225508_1_,
float p_225508_2_) |
protected SoundEvent |
getAmbientSound() |
protected SoundEvent |
getDeathSound() |
SoundEvent |
getEatSound(ItemStack itemStackIn) |
protected SoundEvent |
getHurtSound(DamageSource damageSourceIn) |
protected float |
getStandingEyeHeight(Pose poseIn,
EntitySize sizeIn) |
FoxEntity.Type |
getVariantType() |
void |
handleStatusUpdate(byte id)
|
boolean |
isBreedingItem(ItemStack stack)
Checks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on
the animal type)
|
boolean |
isCrouching() |
protected boolean |
isMovementBlocked()
Dead and sleeping entities cannot move
|
boolean |
isSitting() |
boolean |
isSleeping()
Returns whether player is sleeping or not
|
boolean |
isStuck() |
void |
livingTick()
Called frequently so the entity can update its state every tick as required.
|
protected void |
onChildSpawnFromEgg(PlayerEntity playerIn,
AgeableEntity child) |
ILivingEntityData |
onInitialSpawn(IWorld worldIn,
DifficultyInstance difficultyIn,
SpawnReason reason,
ILivingEntityData spawnDataIn,
CompoundNBT dataTag) |
void |
playAmbientSound()
Plays living's sound at its position
|
void |
readAdditional(CompoundNBT compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
protected void |
registerAttributes() |
protected void |
registerData() |
protected void |
registerGoals() |
void |
setAttackTarget(LivingEntity entitylivingbaseIn)
Sets the active target the Task system uses for tracking
|
void |
setCrouching(boolean p_213451_1_) |
protected void |
setEquipmentBasedOnDifficulty(DifficultyInstance difficulty)
Gives armor or weapon for entity based on given DifficultyInstance
|
void |
setSitting(boolean p_213466_1_) |
protected void |
spawnDrops(DamageSource damageSourceIn) |
void |
tick()
Called to update the entity's position/logic.
|
protected void |
updateEquipmentIfNeeded(ItemEntity itemEntity)
Tests if this entity should pickup a weapon or an armor.
|
void |
writeAdditional(CompoundNBT compound) |
attackEntityFrom, canAnimalSpawn, canBreed, canDespawn, canMateWith, getBlockPathWeight, getExperiencePoints, getLoveCause, getTalkInterval, getYOffset, isInLove, processInteract, resetInLove, setInLove, setInLove, updateAITasks
addGrowth, ageUp, getGrowingAge, isChild, notifyDataManagerChange, onGrowingAdult, setGrowingAge
canSpawn, followLeashSpeed, getBlockPathWeight, hasPath, onLeashDistance, updateLeashedState
attackEntityAsMob, 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, updateMovementGoalFlags
addPotionEffect, applyArmorCalculations, applyEntityCollision, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attemptTeleport, blockUsingShield, canAttack, canBeCollidedWith, canBeHitWithPotion, canBePushed, canBeRiddenInWater, canBreatheUnderwater, canDropLoot, canEntityBeSeen, clearActivePotions, clearBedPosition, collideWithEntity, collideWithNearbyEntities, constructKnockBackVector, createBrain, createSpawnPacket, curePotionEffects, damageArmor, damageEntity, damageShield, decreaseAirSupply, determineNextAir, dropInventory, findAmmo, frostWalk, func_213343_cS, func_226292_a_, func_226293_b_, func_226294_cV_, func_226296_dJ_, func_226298_f_, getAbsorptionAmount, getActiveHand, getActiveItemStack, getActivePotionEffect, getActivePotionEffects, getActivePotionMap, getAIMoveSpeed, getAlwaysRenderNameTagForRender, 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, 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, swingArm, travel, updateArmSwingProgress, updateFallState, updatePotionEffects, updatePotionMetadata, updateRidden, updateSpinAttack, wakeUp
addPassenger, 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, func_225513_by_, func_225514_a_, func_226265_a_, func_226266_a_, func_226276_cg_, 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, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getScoreboardName, 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, isShiftKeyDown, isSilent, isSpectatedByPlayer, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isVisuallySwimming, isWet, makeFlySound, move, moveForced, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onEnterBubbleColumnWithAirAbove, onInsideBlock, onKillEntity, onRemovedFromWorld, onStruckByLightning, pick, playFlySound, playSound, playStepSound, playSwimSound, preparePlayerToSpawn, pushOutOfBlocks, read, recalculateSize, recenterBoundingBox, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, 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, writeWithoutTypeId
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSit
getCapability
public FoxEntity(EntityType<? extends FoxEntity> type, World worldIn)
protected void registerData()
registerData
クラス内 AgeableEntity
protected void registerGoals()
registerGoals
クラス内 MobEntity
public SoundEvent getEatSound(ItemStack itemStackIn)
getEatSound
クラス内 LivingEntity
public void livingTick()
livingTick
クラス内 AnimalEntity
protected boolean isMovementBlocked()
isMovementBlocked
クラス内 LivingEntity
protected void setEquipmentBasedOnDifficulty(DifficultyInstance difficulty)
setEquipmentBasedOnDifficulty
クラス内 MobEntity
public void handleStatusUpdate(byte id)
handleStatusUpdate
クラス内 AnimalEntity
protected void registerAttributes()
registerAttributes
クラス内 MobEntity
public FoxEntity createChild(AgeableEntity ageable)
createChild
クラス内 AgeableEntity
@Nullable public ILivingEntityData onInitialSpawn(IWorld worldIn, DifficultyInstance difficultyIn, SpawnReason reason, @Nullable ILivingEntityData spawnDataIn, @Nullable CompoundNBT dataTag)
onInitialSpawn
クラス内 AgeableEntity
protected void consumeItemFromStack(PlayerEntity player, ItemStack stack)
consumeItemFromStack
クラス内 AnimalEntity
protected float getStandingEyeHeight(Pose poseIn, EntitySize sizeIn)
getStandingEyeHeight
クラス内 LivingEntity
public FoxEntity.Type getVariantType()
public void writeAdditional(CompoundNBT compound)
writeAdditional
クラス内 AnimalEntity
public void readAdditional(CompoundNBT compound)
readAdditional
クラス内 AnimalEntity
public boolean isSitting()
public void setSitting(boolean p_213466_1_)
public boolean isStuck()
public boolean isSleeping()
isSleeping
クラス内 LivingEntity
public boolean canPickUpItem(ItemStack itemstackIn)
canPickUpItem
クラス内 MobEntity
protected boolean canEquipItem(ItemStack stack)
canEquipItem
クラス内 MobEntity
protected void updateEquipmentIfNeeded(ItemEntity itemEntity)
updateEquipmentIfNeeded
クラス内 MobEntity
public boolean isBreedingItem(ItemStack stack)
isBreedingItem
クラス内 AnimalEntity
protected void onChildSpawnFromEgg(PlayerEntity playerIn, AgeableEntity child)
onChildSpawnFromEgg
クラス内 AgeableEntity
public 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
クラス内 Entity
public 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
クラス内 MobEntity
protected int func_225508_e_(float p_225508_1_, float p_225508_2_)
func_225508_e_
クラス内 LivingEntity
public void playAmbientSound()
playAmbientSound
クラス内 MobEntity
@Nullable protected SoundEvent getAmbientSound()
getAmbientSound
クラス内 MobEntity
@Nullable protected SoundEvent getHurtSound(DamageSource damageSourceIn)
getHurtSound
クラス内 LivingEntity
@Nullable protected SoundEvent getDeathSound()
getDeathSound
クラス内 LivingEntity
protected void spawnDrops(DamageSource damageSourceIn)
spawnDrops
クラス内 LivingEntity
public static boolean func_213481_a(FoxEntity p_213481_0_, LivingEntity p_213481_1_)