Package net.minecraft.entity.passive
Class PandaEntity
- java.lang.Object
-
- All Implemented Interfaces:
ICommandSource,INameable,ICapabilityProvider,ICapabilitySerializable<CompoundNBT>,IForgeEntity,INBTSerializable<CompoundNBT>
public class PandaEntity extends AnimalEntity
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classPandaEntity.AttackGoal(package private) static classPandaEntity.AvoidGoal<T extends LivingEntity>(package private) static classPandaEntity.ChildPlayGoalstatic classPandaEntity.Gene(package private) static classPandaEntity.LieBackGoal(package private) classPandaEntity.MateGoal(package private) static classPandaEntity.MoveHelperController(package private) static classPandaEntity.PanicGoal(package private) static classPandaEntity.RevengeGoal(package private) static classPandaEntity.RollGoal(package private) classPandaEntity.SitGoal(package private) static classPandaEntity.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 EntityPredicateBREED_TARGETINGprivate static DataParameter<java.lang.Byte>DATA_ID_FLAGSprivate booleandidBiteprivate static DataParameter<java.lang.Integer>EAT_COUNTERprivate booleangotBambooprivate static DataParameter<java.lang.Byte>HIDDEN_GENE_IDprivate PandaEntity.WatchGoallookAtPlayerGoalprivate static DataParameter<java.lang.Byte>MAIN_GENE_IDprivate floatonBackAmountprivate floatonBackAmountOprivate static java.util.function.Predicate<ItemEntity>PANDA_ITEMSprivate floatrollAmountprivate floatrollAmountOintrollCounterprivate Vector3drollDeltaprivate floatsitAmountprivate floatsitAmountOprivate static DataParameter<java.lang.Integer>SNEEZE_COUNTERprivate static DataParameter<java.lang.Integer>UNHAPPY_COUNTER-
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 PandaEntity(EntityType<? extends PandaEntity> p_i50252_1_, World p_i50252_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdditionalSaveData(CompoundNBT p_213281_1_)private voidaddEatingParticles()private voidafterSneeze()booleancanBeLeashed(PlayerEntity p_184652_1_)booleancanPerformAction()booleancanTakeItem(ItemStack p_213365_1_)static AttributeModifierMap.MutableAttributecreateAttributes()protected voiddefineSynchedData()booleandoHurtTarget(Entity p_70652_1_)voideat(boolean p_213534_1_)ILivingEntityDatafinalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)protected SoundEventgetAmbientSound()AgeableEntitygetBreedOffspring(ServerWorld p_241840_1_, AgeableEntity p_241840_2_)protected SoundEventgetDeathSound()private intgetEatCounter()private booleangetFlag(int p_213547_1_)PandaEntity.GenegetHiddenGene()protected SoundEventgetHurtSound(DamageSource p_184601_1_)floatgetLieOnBackAmount(float p_213583_1_)PandaEntity.GenegetMainGene()private PandaEntity.GenegetOneOfGenesRandomly()floatgetRollAmount(float p_213591_1_)floatgetSitAmount(float p_213561_1_)intgetSneezeCounter()intgetUnhappyCounter()PandaEntity.GenegetVariant()private voidhandleEating()private voidhandleRoll()booleanhurt(DamageSource p_70097_1_, float p_70097_2_)booleanisAggressive()booleanisEating()booleanisFood(ItemStack p_70877_1_)private booleanisFoodOrCake(ItemStack p_213548_1_)booleanisLazy()booleanisOnBack()booleanisPlayful()booleanisRolling()booleanisScared()booleanisSitting()booleanisSneezing()booleanisWeak()booleanisWorried()ActionResultTypemobInteract(PlayerEntity p_230254_1_, Hand p_230254_2_)protected voidpickUpItem(ItemEntity p_175445_1_)protected voidplayStepSound(BlockPos p_180429_1_, BlockState p_180429_2_)voidreadAdditionalSaveData(CompoundNBT p_70037_1_)protected voidregisterGoals()voidroll(boolean p_213576_1_)voidsetAttributes()private voidsetEatCounter(int p_213571_1_)private voidsetFlag(int p_213587_1_, boolean p_213587_2_)voidsetGeneFromParents(PandaEntity p_213545_1_, PandaEntity p_213545_2_)voidsetHiddenGene(PandaEntity.Gene p_213541_1_)voidsetMainGene(PandaEntity.Gene p_213589_1_)voidsetOnBack(boolean p_213542_1_)voidsetSneezeCounter(int p_213562_1_)voidsetUnhappyCounter(int p_213588_1_)voidsit(boolean p_213553_1_)voidsneeze(boolean p_213581_1_)voidtick()private voidtryToSit()private voidupdateOnBackAnimation()private voidupdateRollAmount()private voidupdateSitAmount()-
Methods inherited from class net.minecraft.entity.passive.AnimalEntity
aiStep, canFallInLove, canMate, checkAnimalSpawnRules, customServerAiStep, getAmbientSoundInterval, getExperienceReward, getInLoveTime, getLoveCause, getMyRidingOffset, getWalkTargetValue, handleEntityEvent, isInLove, removeWhenFarAway, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItem
-
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, canCutCorner, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, convertTo, createBodyControl, createLootContext, createMobAttributes, createNavigation, 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, isControlledByLocalInstance, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isValidSlotForItem, isWithinRestriction, isWithinRestriction, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSlot, setSpeed, setTarget, 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, calculateFallDamage, canAttack, canBeAffected, canBreatheUnderwater, canSee, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doPush, dropAllDeathLoot, 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, getEatingSound, 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, getStandingEyeHeight, 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, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, 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, getLeashOffset, 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, isCrouching, 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, 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
-
UNHAPPY_COUNTER
private static final DataParameter<java.lang.Integer> UNHAPPY_COUNTER
-
SNEEZE_COUNTER
private static final DataParameter<java.lang.Integer> SNEEZE_COUNTER
-
EAT_COUNTER
private static final DataParameter<java.lang.Integer> EAT_COUNTER
-
MAIN_GENE_ID
private static final DataParameter<java.lang.Byte> MAIN_GENE_ID
-
HIDDEN_GENE_ID
private static final DataParameter<java.lang.Byte> HIDDEN_GENE_ID
-
DATA_ID_FLAGS
private static final DataParameter<java.lang.Byte> DATA_ID_FLAGS
-
BREED_TARGETING
private static final EntityPredicate BREED_TARGETING
-
gotBamboo
private boolean gotBamboo
-
didBite
private boolean didBite
-
rollCounter
public int rollCounter
-
rollDelta
private Vector3d rollDelta
-
sitAmount
private float sitAmount
-
sitAmountO
private float sitAmountO
-
onBackAmount
private float onBackAmount
-
onBackAmountO
private float onBackAmountO
-
rollAmount
private float rollAmount
-
rollAmountO
private float rollAmountO
-
lookAtPlayerGoal
private PandaEntity.WatchGoal lookAtPlayerGoal
-
PANDA_ITEMS
private static final java.util.function.Predicate<ItemEntity> PANDA_ITEMS
-
-
Constructor Detail
-
PandaEntity
public PandaEntity(EntityType<? extends PandaEntity> p_i50252_1_, World p_i50252_2_)
-
-
Method Detail
-
canTakeItem
public boolean canTakeItem(ItemStack p_213365_1_)
- Overrides:
canTakeItemin classMobEntity
-
getUnhappyCounter
public int getUnhappyCounter()
-
setUnhappyCounter
public void setUnhappyCounter(int p_213588_1_)
-
isSneezing
public boolean isSneezing()
-
isSitting
public boolean isSitting()
-
sit
public void sit(boolean p_213553_1_)
-
isOnBack
public boolean isOnBack()
-
setOnBack
public void setOnBack(boolean p_213542_1_)
-
isEating
public boolean isEating()
-
eat
public void eat(boolean p_213534_1_)
-
getEatCounter
private int getEatCounter()
-
setEatCounter
private void setEatCounter(int p_213571_1_)
-
sneeze
public void sneeze(boolean p_213581_1_)
-
getSneezeCounter
public int getSneezeCounter()
-
setSneezeCounter
public void setSneezeCounter(int p_213562_1_)
-
getMainGene
public PandaEntity.Gene getMainGene()
-
setMainGene
public void setMainGene(PandaEntity.Gene p_213589_1_)
-
getHiddenGene
public PandaEntity.Gene getHiddenGene()
-
setHiddenGene
public void setHiddenGene(PandaEntity.Gene p_213541_1_)
-
isRolling
public boolean isRolling()
-
roll
public void roll(boolean p_213576_1_)
-
defineSynchedData
protected void defineSynchedData()
- Overrides:
defineSynchedDatain classAgeableEntity
-
getFlag
private boolean getFlag(int p_213547_1_)
-
setFlag
private void setFlag(int p_213587_1_, boolean p_213587_2_)
-
addAdditionalSaveData
public void addAdditionalSaveData(CompoundNBT p_213281_1_)
- Overrides:
addAdditionalSaveDatain classAnimalEntity
-
readAdditionalSaveData
public void readAdditionalSaveData(CompoundNBT p_70037_1_)
- Overrides:
readAdditionalSaveDatain classAnimalEntity
-
getBreedOffspring
@Nullable public AgeableEntity getBreedOffspring(ServerWorld p_241840_1_, AgeableEntity p_241840_2_)
- Specified by:
getBreedOffspringin classAgeableEntity
-
registerGoals
protected void registerGoals()
- Overrides:
registerGoalsin classMobEntity
-
createAttributes
public static AttributeModifierMap.MutableAttribute createAttributes()
-
getVariant
public PandaEntity.Gene getVariant()
-
isLazy
public boolean isLazy()
-
isWorried
public boolean isWorried()
-
isPlayful
public boolean isPlayful()
-
isWeak
public boolean isWeak()
-
isAggressive
public boolean isAggressive()
- Overrides:
isAggressivein classMobEntity
-
canBeLeashed
public boolean canBeLeashed(PlayerEntity p_184652_1_)
- Overrides:
canBeLeashedin classMobEntity
-
doHurtTarget
public boolean doHurtTarget(Entity p_70652_1_)
- Overrides:
doHurtTargetin classMobEntity
-
isScared
public boolean isScared()
-
handleEating
private void handleEating()
-
addEatingParticles
private void addEatingParticles()
-
updateSitAmount
private void updateSitAmount()
-
updateOnBackAnimation
private void updateOnBackAnimation()
-
updateRollAmount
private void updateRollAmount()
-
getSitAmount
public float getSitAmount(float p_213561_1_)
-
getLieOnBackAmount
public float getLieOnBackAmount(float p_213583_1_)
-
getRollAmount
public float getRollAmount(float p_213591_1_)
-
handleRoll
private void handleRoll()
-
afterSneeze
private void afterSneeze()
-
pickUpItem
protected void pickUpItem(ItemEntity p_175445_1_)
- Overrides:
pickUpItemin classMobEntity
-
hurt
public boolean hurt(DamageSource p_70097_1_, float p_70097_2_)
- Overrides:
hurtin classAnimalEntity
-
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
-
setGeneFromParents
public void setGeneFromParents(PandaEntity p_213545_1_, @Nullable PandaEntity p_213545_2_)
-
getOneOfGenesRandomly
private PandaEntity.Gene getOneOfGenesRandomly()
-
setAttributes
public void setAttributes()
-
tryToSit
private void tryToSit()
-
mobInteract
public ActionResultType mobInteract(PlayerEntity p_230254_1_, Hand p_230254_2_)
- Overrides:
mobInteractin classAnimalEntity
-
getAmbientSound
@Nullable protected SoundEvent getAmbientSound()
- Overrides:
getAmbientSoundin classMobEntity
-
playStepSound
protected void playStepSound(BlockPos p_180429_1_, BlockState p_180429_2_)
- Overrides:
playStepSoundin classEntity
-
isFood
public boolean isFood(ItemStack p_70877_1_)
- Overrides:
isFoodin classAnimalEntity
-
isFoodOrCake
private boolean isFoodOrCake(ItemStack p_213548_1_)
-
getDeathSound
@Nullable protected SoundEvent getDeathSound()
- Overrides:
getDeathSoundin classLivingEntity
-
getHurtSound
@Nullable protected SoundEvent getHurtSound(DamageSource p_184601_1_)
- Overrides:
getHurtSoundin classLivingEntity
-
canPerformAction
public boolean canPerformAction()
-
-