Class PixelmonEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.entity.Entity>
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.Mob
net.minecraft.world.entity.PathfinderMob
net.minecraft.world.entity.AgeableMob
net.minecraft.world.entity.animal.Animal
net.minecraft.world.entity.animal.horse.AbstractHorse
com.pixelmonmod.pixelmon.entities.pixelmon.AbstractBaseEntity
com.pixelmonmod.pixelmon.entities.pixelmon.AbstractClientEntity
com.pixelmonmod.pixelmon.entities.pixelmon.AbstractHasStatsEntity
com.pixelmonmod.pixelmon.entities.pixelmon.AbstractInteractionsEntity
com.pixelmonmod.pixelmon.entities.pixelmon.AbstractBattleEntity
com.pixelmonmod.pixelmon.entities.pixelmon.AbstractMovesEntity
com.pixelmonmod.pixelmon.entities.pixelmon.AbstractHoldsItemsEntity
com.pixelmonmod.pixelmon.entities.pixelmon.PixelmonEntity
- All Implemented Interfaces:
RenderableEntity,net.minecraft.commands.CommandSource,net.minecraft.world.ContainerListener,net.minecraft.world.entity.Attackable,net.minecraft.world.entity.HasCustomInventoryScreen,net.minecraft.world.entity.OwnableEntity,net.minecraft.world.entity.PlayerRideable,net.minecraft.world.entity.PlayerRideableJumping,net.minecraft.world.entity.Saddleable,net.minecraft.world.entity.Targeting,net.minecraft.world.level.entity.EntityAccess,net.minecraft.world.Nameable,net.minecraftforge.common.capabilities.ICapabilityProvider,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.entity.Entity>,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>,net.minecraftforge.common.extensions.IForgeEntity,net.minecraftforge.common.extensions.IForgeLivingEntity,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
A Pokémon entity.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.AgeableMob
net.minecraft.world.entity.AgeableMob.AgeableMobGroupDataNested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.LivingEntity.FallsoundsNested classes/interfaces inherited from class net.minecraft.world.entity.Entity
net.minecraft.world.entity.Entity.MoveFunction, net.minecraft.world.entity.Entity.MovementEmission, net.minecraft.world.entity.Entity.RemovalReasonNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionA list of player that have shot the Pokemon with Camera.booleanWhether the Pokémon can move around.intCounter for non-Legendary Pokémon despawning.booleanstatic ArrayList<IInteraction>A list of possible interactions the Pokémon has.static intMaximum amount of ticks to wait before despawning.static intMinimum amount of ticks to wait before despawning.intCounter for Legendary Pokémon despawning.The Pixelmon spawner that spawned the Pokémon.booleanWhether to stop rendering the Pokémon due to evolving into a different Pokémon.static intNumber of ticks per second in Minecraft.booleanWhether the pokemon was spawned via fishing.Fields inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractMovesEntity
lastFlyingState, lastSpeed, lastStrafe, lastStrafeUp, MAX_MOVE_MULTIPLIER, MIN_MOVE_MULTIPLIER, prevRotationRoll, rotationRoll, SYNC_FLYING, SYNC_HOVERING, takeOffTicksFields inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractBattleEntity
battleController, groupId, relearnableEvolutionMoves, SYNC_GROUP_IDFields inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractInteractionsEntity
aggressionTimer, aiHelper, initAir, interaction, isFlying, jumpTicks, mountBoost, numInteractions, ridingInitialised, ridingPlayerVertical, skillId, SYNC_INTERACTIONS, targetSide, targetX, targetY, targetZFields inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractClientEntity
animated, animationAutomaticUpdate, animationType, animationVariables, dynamaxAnimationTicks, dynamaxAnimationTicksDown, dynamaxAnimationTicksDownAmount, dynamaxAnimationTicksUp, dynamaxAnimationTicksUpAmount, evoAnimTicks, evolvingVal, evoStage, fadeCount, heightDiff, IGNORED_TEXTURE, IGNORED_TEXTURE_LOCATION, lengthDiff, modelSlot, offGroundTime, overrideTexture, parameterId, parameterId2, particleVariables, shaderParameters, spriteModel, SYNC_ANIMATED, SYNC_DYNAMAXED, SYNC_EVO_STAGE, SYNC_MODEL_SLOT, SYNC_OVERRIDE_TEXTURE, SYNC_SHADER_PARAMETERS, SYNC_SPRITE_MODEL, SYNC_TRANSFORMATION, SYNC_WIREFRAME, transformed, widthDiff, wireFrameFields inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractBaseEntity
aggression, bossTier, canDespawn, dataSyncManager, hitByPokeball, pokemon, scale, spawnLocation, SYNC_BOSS_MODE, SYNC_COLOR, SYNC_FULLBRIGHT, SYNC_MAX_HP, SYNC_NAMETAG_DISABLE, SYNC_OVERLAY, SYNC_OWNER_UUID, SYNC_SCALE, SYNC_SHADOW_DISABLE, SYNC_SPAWN_LOCATION, SYNC_TEXTURE_DISABLEFields inherited from class net.minecraft.world.entity.animal.horse.AbstractHorse
allowStandSliding, BREEDING_CROSS_FACTOR, canGallop, CHEST_SLOT_OFFSET, EQUIPMENT_SLOT_OFFSET, gallopSoundCounter, INV_BASE_COUNT, INV_SLOT_ARMOR, INV_SLOT_SADDLE, inventory, INVENTORY_SLOT_OFFSET, isJumping, playerJumpPendingScale, sprintCounter, tailCounter, temperFields inherited from class net.minecraft.world.entity.animal.Animal
PARENT_AGE_AFTER_BREEDINGFields inherited from class net.minecraft.world.entity.AgeableMob
age, BABY_START_AGE, forcedAge, forcedAgeTimerFields inherited from class net.minecraft.world.entity.PathfinderMob
DEFAULT_WALK_TARGET_VALUEFields inherited from class net.minecraft.world.entity.Mob
ambientSoundTime, armorDropChances, DEFAULT_EQUIPMENT_DROP_CHANCE, goalSelector, handDropChances, jumpControl, LEASH_TAG, lookControl, MAX_ENCHANTED_ARMOR_CHANCE, MAX_ENCHANTED_WEAPON_CHANCE, MAX_PICKUP_LOOT_CHANCE, MAX_WEARING_ARMOR_CHANCE, moveControl, navigation, PICKUP_REACH, PRESERVE_ITEM_DROP_CHANCE, targetSelector, UPDATE_GOAL_SELECTOR_EVERY_N_TICKS, xpRewardFields inherited from class net.minecraft.world.entity.LivingEntity
animStep, animStepO, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_HEALTH_ID, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BASE_GRAVITY, DEFAULT_EYE_HEIGHT, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, HAND_SLOTS, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYHeadRot, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, MIN_MOVEMENT_DISTANCE, noActionTime, noJumpDelay, oAttackAnim, oRun, PLAYER_HURT_EXPERIENCE_TIME, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, SWING_DURATION, swinging, swingingArm, swingTime, timeOffs, USE_ITEM_INTERVAL, useItem, useItemRemaining, walkAnimation, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zzaFields inherited from class net.minecraft.world.entity.Entity
BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, BREATHING_DISTANCE_BELOW_EYES, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, dimensions, ENTITY_COUNTER, entityData, eyeHeight, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, forgeFluidTypeHeight, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, level, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, onGround, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRot, xRotO, yo, yOld, yRot, yRotO, zo, zOldFields inherited from interface net.minecraft.commands.CommandSource
NULL -
Constructor Summary
ConstructorsConstructorDescriptionPixelmonEntity(net.minecraft.world.entity.EntityType<PixelmonEntity> type, net.minecraft.world.level.Level world) PixelmonEntity(net.minecraft.world.level.Level world, Pokemon pokemon) Sets up the Pokémon.PixelmonEntity(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag nbt) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) voidaiStep()LivingEntity's aiStep() code Overwritten here so that Pokémon entities don't heal 1 health at random times during battle, which was caused by the AbstractHorseEntity, and which was causing issues where the Pokémon could survive at 0 health, making battles unable to be ended.voidbaseTick()booleanbooleancanStandOnFluid(net.minecraft.world.level.material.FluidState fluidState) Allows Pokémon to stand/walk on water, lava, or a liquid from another mod if their form has the correct tag.booleancheckSpawnRules(net.minecraft.world.level.LevelAccessor p_213380_1_, net.minecraft.world.entity.MobSpawnType p_213380_2_) voidClears the Pokémon's attack target.voiddie(net.minecraft.world.damagesource.DamageSource cause) booleanstatic booleandisplacePokemonIfShouldered(net.minecraft.server.level.ServerPlayer player, UUID uuid) voidexposeInfo(net.minecraft.server.level.ServerPlayer player) net.minecraft.world.entity.MobCategorygetClassification(boolean forSpawnCount) net.minecraft.world.phys.Vec3getFluidFallingAdjustedMovement(double p_233626_1_, boolean p_233626_3_, net.minecraft.world.phys.Vec3 p_233626_4_) intfloatintintintnet.minecraft.world.entity.LivingEntitygetOwner()net.minecraft.world.entity.MobCategorydoublevoidhideInfo(net.minecraft.server.level.ServerPlayer player) booleanhurt(net.minecraft.world.damagesource.DamageSource source, float amount) booleanisLoaded()This is added to maintain backward compatibility with sidemodsbooleanisLoaded(boolean checkChunk) Determines whether the Pokémon is spawned in the world.booleanbooleanQuick redirect forPokemon.isUncatchable()booleanQuick redirect forPokemon.isUncatchable()net.minecraft.world.InteractionResultmobInteract(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) voidvoidonPlayerJump(int power) voidreadAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) voidReleases the Pokémon from its Poké Ball.voidbooleanremoveWhenFarAway(double p_213397_1_) voidCatches the Pokémon in a Poké Ball.booleansave(net.minecraft.nbt.CompoundTag p_70039_1_) voidvoidsetFlyingCharges(Integer flyingCharges) voidsetFlyPower(float flyPower) voidsetHoverTicks(int hoverTicks) voidsetLastJump(int lastJump) voidsetPriorForm(Stats form) voidSets the origin Pixelmon spawner of the Pokémon.voidsetSpawnReplaceClassification(net.minecraft.world.entity.MobCategory type) booleanshouldRender(double p_145770_1_, double p_145770_3_, double p_145770_5_) voidstartEvolution(Evolution evolution, String cause) Starts the Pokémon's evolution.booleantestInteractEvolution(net.minecraft.world.item.ItemStack stack) booleantestLevelEvolution(int level) Tries to evolve the Pokémon if it evolves from leveling up, and will fail if the Pokémon has an everstone.booleanbooleantestTradeEvolution(Species with) voidtick()voidvoidMoves the riding player off of the Pokémon, and the Pokémon off a vehicle.protected voidvoidMethods inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractHoldsItemsEntity
dropBossItems, dropNormalItemsMethods inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractMovesEntity
calcMoveSpeed, canRiderInteract, causeFallDamage, defineSynchedData, deserializeNBT, doJump, getBlockJumpFactor, getCanFly, getFallRate, getFlyHeight, getFlyingDirection, getHoverRotationPitch, getJumpPower, getMovement, getMoveMultiplier, getStaysHorizontalInRender, getStrafeUpDown, getSwimDepth, getTargetPosition, getThermalPower, handleMovement, isFlying, isHovering, positionRider, removePassenger, serializeNBT, setCanFly, setFlyHeight, setFlying, setHoverRotationPitch, setMovementTarget, setMoveMultiplier, setPixelmonToFlyForBattle, setStrafeUpDown, setSwimDepth, setThermalPower, shouldRenderAtSqrDistance, takeOff, toggleHoverMethods inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractBattleEntity
getAttacksAtLevel, getGroupId, getParticipant, getPixelmonWrapper, inGroup, isValidTarget, learnsAttackAtLevel, onEndBattle, setGroupId, setPixelmonWrapper, startBattle, startBattle, startBattleMethods inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractInteractionsEntity
addBehaviourGoals, canFly, canPerformRearing, canSurf, createNavigation, getAggressionTimer, getAIHelper, getJumpTicks, getNumInteractions, getPassengersRidingOffsetY, getRidingPlayerVertical, getUsingRidingSpecialConditions, isTamed, onSendout, registerGoals, resetAI, setAggressionTimer, setAttackTarget, setBlockTarget, setJumpTicks, setNumInteractions, setRidingPlayerVertical, setTarget, updateEntityActionStateAltMethods inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractHasStatsEntity
canBreatheUnderwater, getDefaultSpawnLocation, getFlyingParameters, getForm, getFormIncludeTransformed, getLvl, getNumForms, getPartyPosition, getPokerus, getSwimmingParameters, setBossTier, setForm, setForm, setHealth, updateHealth, updateStatsMethods inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractClientEntity
animateDynamax, cancelTransform, checkAnimation, getAmbientSound, getAnimationVariables, getAnimationVariables, getCurrentAnimation, getEvoStage, getEyeHeight, getGenderProperties, getModel, getModelSlot, getOffGroundTime, getPalette, getPokemon, getRenderColor, getScaleFactor, getShaderParameters, getSoundVolume, getSpecies, getSprite, getTransformed, initAnimation, initBaseEntity, isAnimated, isDynamaxed, isEvolving, isSpriteModel, isWireFrame, jumpInLiquid, resetDataWatchers, runInfrequentSpecialAnimation, setAnimated, setAnimation, setDynamaxed, setEvolutionAnimationStage, setEvoStage, setModelSlot, setOffGroundTime, setOverrideTexture, setPos, setRenderColor, setShaderParameters, setSpriteModel, setWireFrame, tickModelAnimation, transform, transformServer, updateSize, updateTransformedMethods inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractBaseEntity
belongsTo, canBeLeashed, canRide, changeDimension, define, fireImmune, getAge, getAggression, getAngrySound, getBossTier, getBreedOffspring, getColor, getDeathSound, getDimensions, getEatingSound, getHurtSound, getLocalizedName, getMainHandItem, getName, getNickname, getOwnerUUID, getPixelmonScale, getPlayerParty, getPlayerStorage, getPokemonName, getSpawnLocation, getStorage, hasCustomName, hasOwner, hasPalette, isBossPokemon, isDisableNametag, isDisableShadow, isDisableTexture, isFullbright, isInWall, isLeashed, isLegendary, isOverlay, isOwnedBy, isPalette, isPokemon, isPokemon, isPokemon, isPushable, isSaddleable, isSaddled, onSyncedDataUpdated, openCustomInventoryScreen, playGallopSound, playJumpSound, playStepSound, resetAlterations, setAggression, setColor, setDimensions, setDisableNametag, setDisableShadow, setDisableTexture, setFullbright, setOverlay, setOwnerUUID, setPixelmonScale, setPokemon, setSpawnLocation, setUUID, thunderHit, updateMethods inherited from class net.minecraft.world.entity.animal.horse.AbstractHorse
calculateFallDamage, canEatGrass, canJump, canMate, canParent, canWearArmor, containerChanged, createBaseHorseAttributes, createInventory, doPlayerRide, dropEquipment, equipArmor, equipSaddle, executeRidersJump, fedFood, finalizeSpawn, followMommy, generateJumpStrength, generateMaxHealth, generateSpeed, getAmbientSoundInterval, getAmbientStandInterval, getAmbientStandSound, getCapability, getControllingPassenger, getCustomJump, getDismountLocationForPassenger, getEatAnim, getFlag, getInventorySize, getMaxSpawnClusterSize, getMaxTemper, getMouthAnim, getPassengerAttachmentPoint, getRiddenInput, getRiddenRotation, getRiddenSpeed, getSlot, getStandAnim, getStandingEyeHeight, getTemper, handleEating, handleEntityEvent, handleStartJump, handleStopJump, hasInventoryChanged, invalidateCaps, isArmor, isBred, isEating, isFood, isImmobile, isJumping, isStanding, isWearingArmor, makeMad, modifyTemper, onClimbable, onLeashDistance, randomizeAttributes, setBred, setEating, setFlag, setIsJumping, setOffspringAttributes, setStanding, setTamed, setTemper, spawnTamingParticles, standIfPossible, tameWithName, tickRidden, updateContainerEquipmentMethods inherited from class net.minecraft.world.entity.animal.Animal
canFallInLove, checkAnimalSpawnRules, customServerAiStep, finalizeSpawnChildFromBreeding, getExperienceReward, getInLoveTime, getLoveCause, getWalkTargetValue, isBrightEnoughToSpawn, isInLove, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItemMethods inherited from class net.minecraft.world.entity.AgeableMob
ageBoundaryReached, ageUp, ageUp, canBreed, getSpeedUpSecondsWhenFeeding, isBaby, setAge, setBabyMethods inherited from class net.minecraft.world.entity.PathfinderMob
followLeashSpeed, getWalkTargetValue, isPanicking, isPathFinding, shouldStayCloseToLeashHolderMethods inherited from class net.minecraft.world.entity.Mob
ate, canAttackType, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkAndHandleImportantInteractions, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clearRestriction, convertTo, createBodyControl, createMobAttributes, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getArmorSlots, getAttackBoundingBox, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMoveControl, getNavigation, getPathfindingMalus, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, getSpawnType, getTarget, hasRestriction, interact, isAggressive, isEffectiveAi, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSpawnCancelled, isSunBurnTick, isWithinMeleeAttackRange, isWithinRestriction, isWithinRestriction, jumpInFluid, lookAt, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAllGoals, removeFreeWill, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpawnCancelled, setSpeed, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, tickHeadTurn, wantsToPickUpMethods inherited from class net.minecraft.world.entity.LivingEntity
actuallyHurt, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canDisableShield, canFreeze, canSpawnSoulSpeedParticle, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, doAutoAttackOnTouch, doesEmitEquipEvent, doPush, dropAllDeathLoot, dropExperience, eat, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributeBaseValue, getAttributes, getAttributeValue, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallDamageSound, getFallFlyingTicks, getFallSounds, getFlyingSpeed, getHealth, getHitbox, getHurtDir, getItemInHand, getJumpBoostPower, getKillCredit, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMaxAbsorption, getMaxHealth, getMobType, getMyRidingOffset, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleDamageEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, increaseAirSupply, indicateDamage, internalSetAbsorptionAmount, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isPickable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, lookAt, makeBrain, maxUpStep, onBelowWorld, onChangedBlock, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, onSoulSpeedBlock, playBlockFallSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, reviveCaps, rideTick, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, skipDropExperience, spawnSoulSpeedParticle, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, travel, travelRidden, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateFallFlying, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumed, wouldNotSuffocateAtTargetPoseMethods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canControlVehicle, canSpawnSprintParticle, canSprint, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, checkBelowWorld, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, discard, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, findDimensionEntryPoint, fixupDimensions, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensionsForge, getDirection, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getHandHoldingItemAngle, getId, getIndirectPassengers, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getNameTagOffsetY, getOnPos, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalCooldown, getPortalWaitTime, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handleInsidePortal, handleNetherPortal, hasControllingPassenger, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killedEntity, lavaHurt, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onClientRemoval, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, pick, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playSwimSound, position, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, ridingOffset, rotate, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setMaxUpStep, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithKnownMovement, setPortalCooldown, setPortalCooldown, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSecondsOnFire, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, teleportToWithTicket, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSoundMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCapsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSource
alwaysAcceptsMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canStartSwimming, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, getEyeHeightForge, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, shouldRiderSit, shouldUpdateFluidWhileBoatingMethods inherited from interface net.minecraftforge.common.extensions.IForgeLivingEntity
canDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluidMethods inherited from interface net.minecraft.world.entity.OwnableEntity
levelMethods inherited from interface net.minecraft.world.entity.PlayerRideableJumping
getJumpCooldownMethods inherited from interface com.pixelmonmod.pixelmon.client.render.entity.renderers.smd.RenderableEntity
isDisableTexture, isFullbright, isOverlay, tickAnimationMethods inherited from interface net.minecraft.world.entity.Saddleable
getSaddleSoundEvent
-
Field Details
-
legendaryTicks
public int legendaryTicksCounter for Legendary Pokémon despawning. -
despawnCounter
public int despawnCounterCounter for non-Legendary Pokémon despawning. -
TICKSPERSECOND
public static int TICKSPERSECONDNumber of ticks per second in Minecraft. -
intMinTicksToDespawn
public static int intMinTicksToDespawnMinimum amount of ticks to wait before despawning. -
intMaxTicksToDespawn
public static int intMaxTicksToDespawnMaximum amount of ticks to wait before despawning. -
wasFishing
public boolean wasFishingWhether the pokemon was spawned via fishing. -
grounded
public boolean grounded -
interactionList
A list of possible interactions the Pokémon has. -
canMove
public boolean canMoveWhether the Pokémon can move around. -
stopRender
public boolean stopRenderWhether to stop rendering the Pokémon due to evolving into a different Pokémon. -
spawner
The Pixelmon spawner that spawned the Pokémon. -
cameraCapturedPlayers
A list of player that have shot the Pokemon with Camera.
-
-
Constructor Details
-
PixelmonEntity
public PixelmonEntity(net.minecraft.world.entity.EntityType<PixelmonEntity> type, net.minecraft.world.level.Level world) -
PixelmonEntity
Sets up the Pokémon.- Parameters:
world- The world the Pokémon is in.
-
PixelmonEntity
public PixelmonEntity(net.minecraft.world.level.Level world, net.minecraft.nbt.CompoundTag nbt)
-
-
Method Details
-
getMovementTick
public int getMovementTick() -
getSpawnReplaceClassification
public net.minecraft.world.entity.MobCategory getSpawnReplaceClassification() -
setSpawnReplaceClassification
public void setSpawnReplaceClassification(net.minecraft.world.entity.MobCategory type) -
getFluidFallingAdjustedMovement
public net.minecraft.world.phys.Vec3 getFluidFallingAdjustedMovement(double p_233626_1_, boolean p_233626_3_, net.minecraft.world.phys.Vec3 p_233626_4_) - Overrides:
getFluidFallingAdjustedMovementin classnet.minecraft.world.entity.LivingEntity
-
canChangeDimensions
public boolean canChangeDimensions()- Overrides:
canChangeDimensionsin classnet.minecraft.world.entity.LivingEntity
-
onPlayerJump
public void onPlayerJump(int power) - Specified by:
onPlayerJumpin interfacenet.minecraft.world.entity.PlayerRideableJumping- Overrides:
onPlayerJumpin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
getClassification
public net.minecraft.world.entity.MobCategory getClassification(boolean forSpawnCount) -
baseTick
public void baseTick()- Overrides:
baseTickin classAbstractMovesEntity
-
onLanding
public void onLanding()- Overrides:
onLandingin classAbstractMovesEntity
-
dismountsUnderwater
public boolean dismountsUnderwater()- Overrides:
dismountsUnderwaterin classnet.minecraft.world.entity.Entity
-
die
public void die(net.minecraft.world.damagesource.DamageSource cause) - Overrides:
diein classAbstractHoldsItemsEntity
-
mobInteract
public net.minecraft.world.InteractionResult mobInteract(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) - Overrides:
mobInteractin classAbstractInteractionsEntity
-
retrieve
Catches the Pokémon in a Poké Ball. -
releaseFromPokeball
public void releaseFromPokeball()Releases the Pokémon from its Poké Ball. -
clearAttackTarget
public void clearAttackTarget()Clears the Pokémon's attack target. -
setPriorForm
-
checkSpawnRules
public boolean checkSpawnRules(net.minecraft.world.level.LevelAccessor p_213380_1_, net.minecraft.world.entity.MobSpawnType p_213380_2_) - Overrides:
checkSpawnRulesin classnet.minecraft.world.entity.PathfinderMob
-
tickLeash
public void tickLeash()- Overrides:
tickLeashin classnet.minecraft.world.entity.PathfinderMob
-
removeWhenFarAway
public boolean removeWhenFarAway(double p_213397_1_) - Overrides:
removeWhenFarAwayin classAbstractBattleEntity
-
getOwner
public net.minecraft.world.entity.LivingEntity getOwner()- Specified by:
getOwnerin interfacenet.minecraft.world.entity.OwnableEntity- Overrides:
getOwnerin classAbstractBaseEntity
-
tick
public void tick()- Overrides:
tickin classAbstractInteractionsEntity
-
updateDespawn
public void updateDespawn() -
removeAfterChangingDimensions
public void removeAfterChangingDimensions()- Overrides:
removeAfterChangingDimensionsin classAbstractInteractionsEntity
-
hurt
public boolean hurt(net.minecraft.world.damagesource.DamageSource source, float amount) - Overrides:
hurtin classAbstractBattleEntity
-
save
public boolean save(net.minecraft.nbt.CompoundTag p_70039_1_) - Overrides:
savein classnet.minecraft.world.entity.Entity
-
addAdditionalSaveData
public void addAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) - Overrides:
addAdditionalSaveDatain classAbstractInteractionsEntity
-
readAdditionalSaveData
public void readAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) - Overrides:
readAdditionalSaveDatain classAbstractInteractionsEntity
-
unloadEntity
public void unloadEntity()Description copied from class:AbstractInteractionsEntityMoves the riding player off of the Pokémon, and the Pokémon off a vehicle.- Overrides:
unloadEntityin classAbstractInteractionsEntity
-
startEvolution
Starts the Pokémon's evolution.- Parameters:
evolution-
-
isLoaded
public boolean isLoaded()This is added to maintain backward compatibility with sidemods- Returns:
- Whether the Pokémon is spawned in the world.
-
isLoaded
public boolean isLoaded(boolean checkChunk) Determines whether the Pokémon is spawned in the world.- Returns:
- Whether the Pokémon is spawned in the world.
-
isRaidPokemon
public boolean isRaidPokemon() -
testTradeEvolution
-
testLevelEvolution
public boolean testLevelEvolution(int level) Tries to evolve the Pokémon if it evolves from leveling up, and will fail if the Pokémon has an everstone.- Parameters:
level- The current level of the Pokémon.- Returns:
- Whether the Pokémon will evolve from leveling up.
-
testInteractEvolution
public boolean testInteractEvolution(net.minecraft.world.item.ItemStack stack) -
testTickingEvolution
public boolean testTickingEvolution() -
setSpawnerParent
Sets the origin Pixelmon spawner of the Pokémon.- Parameters:
spawner- The Pixelmon spawner that spawned the Pokémon.
-
shouldRender
public boolean shouldRender(double p_145770_1_, double p_145770_3_, double p_145770_5_) - Overrides:
shouldRenderin classAbstractMovesEntity
-
getYCentre
public double getYCentre() -
setClientOnlyInfo
-
getClientOnlyInfo
-
isUncatchable
public boolean isUncatchable()Quick redirect forPokemon.isUncatchable()- Returns:
- True if uncatchable
-
isUnbattleable
public boolean isUnbattleable()Quick redirect forPokemon.isUncatchable()- Returns:
- True if unbattleable
-
exposeInfo
public void exposeInfo(net.minecraft.server.level.ServerPlayer player) -
hideInfo
public void hideInfo(net.minecraft.server.level.ServerPlayer player) -
displacePokemonIfShouldered
public static boolean displacePokemonIfShouldered(net.minecraft.server.level.ServerPlayer player, UUID uuid) -
canStandOnFluid
public boolean canStandOnFluid(net.minecraft.world.level.material.FluidState fluidState) Allows Pokémon to stand/walk on water, lava, or a liquid from another mod if their form has the correct tag. Taken from the StriderEntity.- Overrides:
canStandOnFluidin classnet.minecraft.world.entity.LivingEntity- Parameters:
fluidState- The fluid the entity is in.- Returns:
- Whether the entity can stand on water.
-
getFlyingCharges
public int getFlyingCharges()- Returns:
- The amount of flying charges an entity has left
-
setFlyingCharges
-
getFlyPower
public float getFlyPower() -
setFlyPower
public void setFlyPower(float flyPower) -
setLastJump
public void setLastJump(int lastJump) -
getLastJump
public int getLastJump() -
getHoverTicks
public int getHoverTicks() -
setHoverTicks
public void setHoverTicks(int hoverTicks) -
aiStep
public void aiStep()LivingEntity's aiStep() code Overwritten here so that Pokémon entities don't heal 1 health at random times during battle, which was caused by the AbstractHorseEntity, and which was causing issues where the Pokémon could survive at 0 health, making battles unable to be ended.- Overrides:
aiStepin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
updateControlFlags
protected void updateControlFlags()- Overrides:
updateControlFlagsin classnet.minecraft.world.entity.Mob
-