public class PandaEntity extends AnimalEntity
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
PandaEntity.AttackGoal |
(package private) static class |
PandaEntity.AvoidGoal<T extends LivingEntity> |
(package private) static class |
PandaEntity.ChildPlayGoal |
(package private) static class |
PandaEntity.LieBackGoal |
(package private) class |
PandaEntity.MateGoal |
(package private) static class |
PandaEntity.MoveHelperController |
(package private) static class |
PandaEntity.PanicGoal |
(package private) static class |
PandaEntity.RevengeGoal |
(package private) static class |
PandaEntity.RollGoal |
(package private) class |
PandaEntity.SitGoal |
static class |
PandaEntity.Type |
(package private) static class |
PandaEntity.WatchGoal |
AgeableEntity.AgeableDataEntity.IMoveCallback| Modifier and Type | Field and Description |
|---|---|
private static EntityPredicate |
BREED_TARGETING |
private boolean |
didBite |
private static DataParameter<java.lang.Integer> |
EAT_COUNTER |
private boolean |
gotBamboo |
private static DataParameter<java.lang.Byte> |
HIDDEN_GENE |
private static DataParameter<java.lang.Byte> |
MAIN_GENE |
private float |
onBackAmount |
private float |
onBackAmountO |
private static DataParameter<java.lang.Byte> |
PANDA_FLAGS |
private static java.util.function.Predicate<ItemEntity> |
PANDA_ITEMS |
private float |
rollAmount |
private float |
rollAmountO |
int |
rollCounter |
private Vec3d |
rollDelta |
private float |
sitAmount |
private float |
sitAmountO |
private static DataParameter<java.lang.Integer> |
SNEEZE_COUNTER |
private static DataParameter<java.lang.Integer> |
UNHAPPY_COUNTER |
private PandaEntity.WatchGoal |
watchGoal |
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 |
|---|
PandaEntity(EntityType<? extends PandaEntity> type,
World worldIn) |
canAnimalSpawn, canBreed, canDespawn, canMateWith, consumeItemFromStack, getBlockPathWeight, getExperiencePoints, getLoveCause, getTalkInterval, getYOffset, handleStatusUpdate, isInLove, livingTick, resetInLove, setInLove, setInLove, updateAITasksaddGrowth, ageUp, getGrowingAge, isChild, notifyDataManagerChange, onChildSpawnFromEgg, onGrowingAdult, setGrowingAgecanSpawn, followLeashSpeed, getBlockPathWeight, hasPath, onLeashDistance, updateLeashedStatebaseTick, canAttack, canAttack, canBeSteered, canEquipItem, 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, isAIDisabled, isDespawnPeaceful, isHolding, isInDaylight, isItemStackInSlot, isLeftHanded, isMaxGroupSize, isNoDespawnRequired, isNotColliding, isServerWorld, isWithinHomeDistanceCurrentPosition, isWithinHomeDistanceFromPosition, playAmbientSound, playHurtSound, preventDespawn, processInitialInteract, replaceItemInInventory, sendDebugPackets, setAggroed, setAIMoveSpeed, setAttackTarget, setCanPickUpLoot, setDropChance, setEnchantmentBasedOnDifficulty, setEquipmentBasedOnDifficulty, setHomePosAndDistance, setItemStackToSlot, setLeashHolder, setLeftHanded, setMoveForward, setMoveStrafing, setMoveVertical, setNoAI, setPathPriority, setVehicleEntityId, shouldExchangeEquipment, spawnExplosionParticle, startRiding, updateDistance, updateEntityActionState, updateMovementGoalFlagsaddPotionEffect, applyArmorCalculations, applyEntityCollision, applyPotionDamageCalculations, areAllPotionsAmbient, attackable, attemptTeleport, blockUsingShield, calculateFallDamage, 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, getEatSound, getEyeHeight, getFallSound, getHealth, getHeldItem, getHeldItemMainhand, getHeldItemOffhand, getIdleTime, getItemInUseCount, getItemInUseMaxCount, getJumpUpwardsMotion, getLastAttackedEntity, getLastAttackedEntityTime, getLastDamageSource, getMaxHealth, getRenderScale, getRevengeTarget, getRevengeTimer, getRNG, getRotationYawHead, getSize, getSoundPitch, getSoundVolume, getStandingEyeHeight, getSwimAnimation, getSwingProgress, getTicksElytraFlying, getTotalArmorValue, getVisibilityMultiplier, getWaterSlowDown, getYaw, handleFluidSneak, hasItemInSlot, heal, isActiveItemStackBlocking, isActualySwimming, isAlive, isElytraFlying, isEntityInsideOpaqueBlock, isEntityUndead, isHandActive, isMovementBlocked, isOnLadder, isPlayer, isPotionActive, isPotionApplicable, isSleeping, 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, spawnDrops, 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, isCrouching, 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, 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> UNHAPPY_COUNTER
private static final DataParameter<java.lang.Integer> SNEEZE_COUNTER
private static final DataParameter<java.lang.Integer> EAT_COUNTER
private static final DataParameter<java.lang.Byte> MAIN_GENE
private static final DataParameter<java.lang.Byte> HIDDEN_GENE
private static final DataParameter<java.lang.Byte> PANDA_FLAGS
private static final EntityPredicate BREED_TARGETING
private boolean gotBamboo
private boolean didBite
public int rollCounter
private Vec3d rollDelta
private float sitAmount
private float sitAmountO
private float onBackAmount
private float onBackAmountO
private float rollAmount
private float rollAmountO
private PandaEntity.WatchGoal watchGoal
private static final java.util.function.Predicate<ItemEntity> PANDA_ITEMS
public PandaEntity(EntityType<? extends PandaEntity> type, World worldIn)
public boolean canPickUpItem(ItemStack itemstackIn)
canPickUpItem in class MobEntitypublic int getUnhappyCounter()
public void setUnhappyCounter(int p_213588_1_)
public boolean func_213539_dW()
public boolean func_213556_dX()
public void func_213553_r(boolean p_213553_1_)
public boolean func_213567_dY()
public void func_213542_s(boolean p_213542_1_)
public boolean func_213578_dZ()
public void func_213534_t(boolean p_213534_1_)
private int getEatCounter()
private void setEatCounter(int p_213571_1_)
public void func_213581_u(boolean p_213581_1_)
public int getSneezeCounter()
public void setSneezeCounter(int p_213562_1_)
public PandaEntity.Type getMainGene()
public void setMainGene(PandaEntity.Type pandaType)
public PandaEntity.Type getHiddenGene()
public void setHiddenGene(PandaEntity.Type pandaType)
public boolean func_213564_eh()
public void func_213576_v(boolean p_213576_1_)
protected void registerData()
registerData in class AgeableEntityprivate boolean getPandaFlag(int flagId)
private void setPandaFlag(int flagId,
boolean p_213587_2_)
public void writeAdditional(CompoundNBT compound)
writeAdditional in class AnimalEntitypublic void readAdditional(CompoundNBT compound)
readAdditional in class AnimalEntity@Nullable public AgeableEntity createChild(AgeableEntity ageable)
createChild in class AgeableEntityprotected void registerGoals()
registerGoals in class MobEntityprotected void registerAttributes()
registerAttributes in class MobEntitypublic PandaEntity.Type func_213590_ei()
public boolean isLazy()
public boolean isWorried()
public boolean isPlayful()
public boolean isWeak()
public boolean isAggressive()
isAggressive in class MobEntitypublic boolean canBeLeashedTo(PlayerEntity player)
canBeLeashedTo in class MobEntitypublic boolean attackEntityAsMob(Entity entityIn)
attackEntityAsMob in class MobEntitypublic boolean func_213566_eo()
private void func_213546_et()
private void func_213533_eu()
private void func_213574_ev()
private void func_213563_ew()
private void func_213550_ex()
public float func_213561_v(float p_213561_1_)
public float func_213583_w(float p_213583_1_)
public float func_213591_x(float p_213591_1_)
private void func_213535_ey()
private void func_213577_ez()
protected void updateEquipmentIfNeeded(ItemEntity itemEntity)
updateEquipmentIfNeeded in class MobEntitypublic boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom in class AnimalEntity@Nullable public ILivingEntityData onInitialSpawn(IWorld worldIn, DifficultyInstance difficultyIn, SpawnReason reason, @Nullable ILivingEntityData spawnDataIn, @Nullable CompoundNBT dataTag)
onInitialSpawn in class AgeableEntitypublic void getGenesForChildFromParents(PandaEntity father, @Nullable PandaEntity mother)
private PandaEntity.Type getOneOfGenesRandomly()
public void setAttributes()
private void tryToSit()
public boolean processInteract(PlayerEntity player, Hand hand)
processInteract in class AnimalEntity@Nullable protected SoundEvent getAmbientSound()
getAmbientSound in class MobEntityprotected void playStepSound(BlockPos pos, BlockState blockIn)
playStepSound in class Entitypublic boolean isBreedingItem(ItemStack stack)
isBreedingItem in class AnimalEntityprivate boolean isBreedingItemOrCake(ItemStack stack)
@Nullable protected SoundEvent getDeathSound()
getDeathSound in class LivingEntity@Nullable protected SoundEvent getHurtSound(DamageSource damageSourceIn)
getHurtSound in class LivingEntitypublic boolean canPerformAction()