Class AbstractInteractionsEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
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
- All Implemented Interfaces:
BoneTransformSupplier,RenderableEntity,net.minecraft.commands.CommandSource,net.minecraft.network.syncher.SyncedDataHolder,net.minecraft.world.ContainerListener,net.minecraft.world.entity.Attackable,net.minecraft.world.entity.EquipmentUser,net.minecraft.world.entity.HasCustomInventoryScreen,net.minecraft.world.entity.Leashable,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.minecraft.world.scores.ScoreHolder,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IEntityExtension,net.neoforged.neoforge.common.extensions.ILivingEntityExtension,net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
- Direct Known Subclasses:
AbstractBattleEntity
Handles mounting a Pokémon.
-
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.neoforged.neoforge.attachment.AttachmentHolder
net.neoforged.neoforge.attachment.AttachmentHolder.AsFieldNested classes/interfaces inherited from interface net.minecraft.world.entity.Leashable
net.minecraft.world.entity.Leashable.LeashData -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intTimer used by AI for aggression behavior.protected AIHelperThe Pokémon's AI.protected intThe initial amount of air the Pokémon has when underwater.protected PixelmonInteractionA custom interaction the Pokémon has.protected booleanWhether the Pokémon is flying.protected intprotected intprotected booleanWhether a player is riding the Pokémon.protected intStores player jump and crouch input.The id of the move skill that the Pokémon should execute.static final DataSync<AbstractInteractionsEntity, Byte> net.minecraft.core.DirectionThe direction of the Pokémon's target.intThe coordinates of the Pokémon's target.intThe coordinates of the Pokémon's target.intThe coordinates of the Pokémon's target.Fields inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractClientEntity
animated, animation, 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_ANIMATION, 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_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, bodyArmorDropChance, DEFAULT_EQUIPMENT_DROP_CHANCE, goalSelector, handDropChances, jumpControl, 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, PRESERVE_ITEM_DROP_CHANCE_THRESHOLD, RANDOM_SPAWN_BONUS_ID, targetSelector, UPDATE_GOAL_SELECTOR_EVERY_N_TICKS, xpRewardFields inherited from class net.minecraft.world.entity.LivingEntity
animStep, animStepO, appliedScale, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, ATTRIBUTES_FIELD, autoSpinAttackDmg, autoSpinAttackItemStack, autoSpinAttackTicks, BASE_JUMP_POWER, BODY_ARMOR_OFFSET, brain, damageContainers, DATA_HEALTH_ID, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BABY_SCALE, DEFAULT_BASE_GRAVITY, 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_SAFE_FALL_DISTANCE, BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, CONTENTS_SLOT_INDEX, 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, level, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, onGround, PASSENGERS_TAG, portalProcess, 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 class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEYFields inherited from interface net.minecraft.commands.CommandSource
NULLFields inherited from interface net.minecraft.world.entity.Leashable
LEASH_ELASTIC_DIST, LEASH_TAG, LEASH_TOO_FAR_DISTFields inherited from interface net.minecraft.world.scores.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionAbstractInteractionsEntity(net.minecraft.world.entity.EntityType<? extends AbstractInteractionsEntity> type, net.minecraft.world.level.Level par1World) Initializes the Pokémon. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) protected voidbooleancanFly()Checks whether the Pokémon has the required HM to Fly.protected booleanbooleancanSurf()Checks whether the Pokémon has the required HM to Surf.protected net.minecraft.world.entity.ai.navigation.PathNavigationcreateNavigation(net.minecraft.world.level.Level world) protected voiddefineSynchedData(net.minecraft.network.syncher.SynchedEntityData.Builder builder) intGets the Pokémon's AI.intintGets the number of interactions the Pokémon has.protected net.minecraft.world.phys.Vec3getPassengerAttachmentPoint(net.minecraft.world.entity.Entity p_301103_, net.minecraft.world.entity.EntityDimensions p_298879_, float p_299886_) intprotected booleanAccounts for special cases of riding Pokémon using separate moving offsets.booleanisTamed()net.minecraft.world.InteractionResultmobInteract(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) voidvoidreadAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) protected voidvoidvoidresetAI()Resets the Pokémon's AI to its default.voidsetAggressionTimer(int aggressionTimer) voidsetAttackTarget(net.minecraft.world.entity.LivingEntity entity, String skillId) Sets the Pokémon's target.voidsetBlockTarget(int x, int y, int z, net.minecraft.core.Direction side, String skillId) Sets the Pokémon's target block.voidsetJumpTicks(int jumpTicks) voidsetNumInteractions(int newValue) Sets the number of interactions the Pokémon has.voidsetRidingPlayerVertical(int ridingPlayerVertical) voidsetTarget(net.minecraft.world.entity.LivingEntity entity) voidtick()voidMoves the riding player off of the Pokémon, and the Pokémon off a vehicle.protected voidMethods inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractHasStatsEntity
canBreatheUnderwater, getDefaultSpawnLocation, getFlyingParameters, getFormIncludeTransformed, getLvl, getNumForms, getPartyPosition, getPokerus, getSwimmingParameters, setBossTier, setForm, setForm, setHealth, updateHealth, updateStatsMethods inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractClientEntity
animateDynamax, animationTime, baseTick, boneTransforms, cancelTransform, checkAnimation, getAmbientSound, getAnimation, getAnimationVariables, getAnimationVariables, getEvoStage, getEyeY, getForm, getGenderProperties, getModel, getModelSlot, getOffGroundTime, getPalette, getRenderColor, getScaleFactor, getShaderParameters, getSoundVolume, getSpecies, getSprite, getTransformed, handleAnimation, initAnimation, initBaseEntity, isAnimated, isDynamaxed, isEvolving, isSpriteModel, isWireFrame, jumpInLiquid, resetDataWatchers, setAnimated, setAnimation, setAnimation, setDynamaxed, setEvolutionAnimationStage, setEvoStage, setModelSlot, setOffGroundTime, setOverrideTexture, setRenderColor, setShaderParameters, setSpriteModel, setWireFrame, tickAnimation, transform, transformServer, updateSize, updateTransformedMethods inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractBaseEntity
belongsTo, canBeLeashed, canRide, causeFallDamage, changeDimension, define, fireImmune, getAge, getAggression, getAngrySound, getBossTier, getBreedOffspring, getColor, getDeathSound, getDimensions, getEatingSound, getHurtSound, getLocalizedName, getMainHandItem, getName, getNickname, getOwner, getOwnerUUID, getPixelmonScale, getPlayerParty, getPlayerStorage, getPokemon, getPokemonName, getSpawnLocation, getStorage, hasCustomName, hasOwner, hasPalette, hurt, isBossPokemon, isDisableNametag, isDisableShadow, isDisableTexture, isFullbright, isLeashed, isLegendary, isOverlay, isOwnedBy, isPalette, isPokemon, isPokemon, isPokemon, isPushable, isSaddleable, isSaddled, isType, isType, onSyncedDataUpdated, openCustomInventoryScreen, playGallopSound, playJumpSound, playStepSound, removeWhenFarAway, 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
aiStep, canEatGrass, canJump, canMate, canParent, containerChanged, createBaseHorseAttributes, createInventory, doPlayerRide, dropEquipment, equipBodyArmor, equipSaddle, executeRidersJump, fedFood, finalizeSpawn, followMommy, generateJumpStrength, generateMaxHealth, generateSpeed, getAmbientSoundInterval, getAmbientStandInterval, getAmbientStandSound, getBodyArmorAccess, getControllingPassenger, getDismountLocationForPassenger, getEatAnim, getFlag, getInventory, getInventoryColumns, getInventorySize, getInventorySize, getMaxSpawnClusterSize, getMaxTemper, getMouthAnim, getRiddenInput, getRiddenRotation, getRiddenSpeed, getSlot, getStandAnim, getTemper, handleEating, handleEntityEvent, handleLeashAtDistance, handleStartJump, handleStopJump, hasInventoryChanged, isBred, isEating, isFood, isImmobile, isJumping, isStanding, makeMad, modifyTemper, onClimbable, onPlayerJump, positionRider, randomizeAttributes, setBred, setEating, setFlag, setIsJumping, setOffspringAttributes, setStanding, setTamed, setTemper, spawnTamingParticles, standIfPossible, syncSaddleToClients, tameWithName, tickRiddenMethods inherited from class net.minecraft.world.entity.animal.Animal
actuallyHurt, canFallInLove, checkAnimalSpawnRules, customServerAiStep, finalizeSpawnChildFromBreeding, getBaseExperienceReward, 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
checkSpawnRules, closeRangeLeashBehaviour, followLeashSpeed, getWalkTargetValue, isPanicking, isPathFinding, shouldStayCloseToLeashHolderMethods inherited from class net.minecraft.world.entity.Mob
ate, canAttackType, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, canUseSlot, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clampHeadRotationToBody, clearRestriction, convertTo, createBodyControl, createMobAttributes, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, dropPreservedEquipment, dropPreservedEquipment, enchantSpawnedArmor, enchantSpawnedWeapon, equip, equip, equipItemIfPossible, getArmorAndBodyArmorSlots, getArmorSlots, getAttackBoundingBox, getBodyArmorItem, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashData, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMoveControl, getNavigation, getPathfindingMalus, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, getSpawnType, getTarget, getTargetFromBrain, hasRestriction, interact, isAggressive, isBodyArmorItem, isEffectiveAi, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSpawnCancelled, isSunBurnTick, isWearingBodyArmor, isWithinMeleeAttackRange, isWithinRestriction, isWithinRestriction, jumpInFluid, leashTooFarBehaviour, lookAt, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, pickUpItem, playAmbientSound, playAttackSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAllGoals, removeFreeWill, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setBodyArmorItem, setCanPickUpLoot, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashData, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpawnCancelled, setSpeed, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, stopInPlace, tickHeadTurn, updateControlFlags, wantsToPickUpMethods inherited from class net.minecraft.world.entity.LivingEntity
activeLocationDependentEnchantments, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canDisableShield, canFreeze, canStandOnFluid, canUsePortal, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doHurtEquipment, doPush, dropAllDeathLoot, dropExperience, eat, eat, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAgeScale, getAllSlots, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCombatTracker, getComfortableFallDistance, getCurrentSwingDuration, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDefaultDimensions, getDefaultGravity, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getExperienceReward, getFallDamageSound, getFallFlyingTicks, getFallSounds, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHitbox, getHurtDir, getItemInHand, getJumpBoostPower, getJumpPower, getJumpPower, getKillCredit, getKnockback, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMaxAbsorption, getMaxHeadRotationRelativeToBody, getMaxHealth, getNoActionTime, getOffhandItem, getPassengerRidingPosition, getPreciseBodyRotation, getProjectile, getRelativePortalPosition, getScale, getSleepingPos, getSlotForHand, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVisualRotationYInDegrees, getVoicePitch, getWaterSlowDown, getWeaponItem, getYHeadRot, goDownInWater, handleDamageEvent, handleRelativeFrictionAndCalculateMovement, hasEffect, hasInfiniteMaterials, hasItemInSlot, hasLandedInLiquid, hasLineOfSight, heal, hurtArmor, hurtCurrentlyUsedShield, hurtHelmet, igniteForTicks, increaseAirSupply, indicateDamage, internalSetAbsorptionAmount, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isInvulnerableTo, isInWall, isPickable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadRotationStep, lerpHeadTo, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, lookAt, makeBrain, makeSound, maxUpStep, onBelowWorld, onChangedBlock, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onEquippedItemBroken, onItemPickup, onLeaveCombat, playBlockFallSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeEffectsCuredBy, removeFrost, resetForwardDirectionOfRelativePortalPosition, rideTick, sanitizeScale, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRiderFaceForward, shouldShowName, skipDropExperience, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, travel, travelRidden, triggerItemUseEffects, triggerOnDeathMobEffects, tryAddFrost, updateEffectVisibility, updateFallFlying, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumed, wouldNotSuffocateAtTargetPoseMethods inherited from class net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, absRotateTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyGravity, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canChangeDimensions, canCollideWith, canControlVehicle, canSpawnSprintParticle, canSprint, canTrample, captureDrops, captureDrops, checkBelowWorld, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fixupDimensions, fudgePositionAfterSizeChange, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCapability, getCapability, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDimensionChangingDelay, getDirection, getDisplayName, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyeInFluidType, getEyePosition, getEyePosition, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getGravity, getHandHoldingItemAngle, getId, getInBlockState, getIndirectPassengers, getKnownMovement, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxHeightFluidType, getMotionDirection, getMovementEmission, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalCooldown, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandom, 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, getVehicleAttachmentPoint, getViewScale, getViewVector, getViewXRot, getX, getX, getXRot, getY, getY, getYRot, getZ, getZ, handlePortal, hasControllingPassenger, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, igniteForSeconds, ignoreExplosion, interactAt, is, isAddedToLevel, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, 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, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToLevel, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromLevel, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playSwimSound, position, positionRider, processFlappingMovement, processPortalCooldown, push, push, reapplyPosition, refreshDimensions, registryAccess, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setAsInsidePortal, setBoundingBox, setCustomName, setCustomNameVisible, setData, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSoundMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachmentsMethods 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.minecraft.world.entity.EquipmentUser
equip, equip, equip, resolveSlotMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IEntityExtension
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, captureDrops, captureDrops, copyAttachmentsFrom, deserializeNBT, getClassification, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, hasCustomOutlineRendering, isAddedToLevel, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToLevel, onRemovedFromLevel, revive, sendPairingData, serializeNBT, shouldRiderSitMethods inherited from interface net.neoforged.neoforge.common.extensions.ILivingEntityExtension
canDrownInFluidType, canSwimInFluidType, moveInFluid, onDamageTaken, self, sinkInFluidMethods inherited from interface net.minecraft.world.entity.Leashable
canHaveALeashAttachedToIt, elasticRangeLeashBehaviour, getLeashHolder, mayBeLeashed, readLeashData, setDelayedLeashHolderId, setLeashedTo, writeLeashDataMethods 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.entity.RenderableEntity
isDisableTexture, isFullbright, isOverlayMethods inherited from interface net.minecraft.world.entity.Saddleable
getSaddleSoundEventMethods inherited from interface net.minecraft.world.scores.ScoreHolder
getFeedbackDisplayName
-
Field Details
-
SYNC_INTERACTIONS
-
ridingPlayerVertical
protected int ridingPlayerVerticalStores player jump and crouch input. -
isFlying
protected boolean isFlyingWhether the Pokémon is flying. -
initAir
protected int initAirThe initial amount of air the Pokémon has when underwater. -
ridingInitialised
protected boolean ridingInitialisedWhether a player is riding the Pokémon. -
aiHelper
The Pokémon's AI. -
aggressionTimer
protected int aggressionTimerTimer used by AI for aggression behavior. -
interaction
A custom interaction the Pokémon has. -
numInteractions
protected int numInteractions -
jumpTicks
protected int jumpTicks -
skillId
The id of the move skill that the Pokémon should execute. -
targetX
public int targetXThe coordinates of the Pokémon's target. -
targetY
public int targetYThe coordinates of the Pokémon's target. -
targetZ
public int targetZThe coordinates of the Pokémon's target. -
targetSide
public net.minecraft.core.Direction targetSideThe direction of the Pokémon's target.
-
-
Constructor Details
-
AbstractInteractionsEntity
public AbstractInteractionsEntity(net.minecraft.world.entity.EntityType<? extends AbstractInteractionsEntity> type, net.minecraft.world.level.Level par1World) Initializes the Pokémon.- Parameters:
par1World- The world the Pokémon is in.
-
-
Method Details
-
defineSynchedData
protected void defineSynchedData(net.minecraft.network.syncher.SynchedEntityData.Builder builder) - Overrides:
defineSynchedDatain classAbstractClientEntity
-
getAIHelper
Gets the Pokémon's AI.- Returns:
- The Pokémon's AI.
-
resetAI
public void resetAI()Resets the Pokémon's AI to its default. -
registerGoals
protected void registerGoals()- Overrides:
registerGoalsin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
addBehaviourGoals
protected void addBehaviourGoals()- Overrides:
addBehaviourGoalsin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
mobInteract
public net.minecraft.world.InteractionResult mobInteract(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) - Overrides:
mobInteractin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
isTamed
public boolean isTamed()- Overrides:
isTamedin classAbstractBaseEntity
-
canFly
public boolean canFly()Checks whether the Pokémon has the required HM to Fly. -
canSurf
public boolean canSurf()Checks whether the Pokémon has the required HM to Surf. -
onSendout
public void onSendout() -
getPassengerAttachmentPoint
protected net.minecraft.world.phys.Vec3 getPassengerAttachmentPoint(net.minecraft.world.entity.Entity p_301103_, net.minecraft.world.entity.EntityDimensions p_298879_, float p_299886_) - Overrides:
getPassengerAttachmentPointin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
canPerformRearing
protected boolean canPerformRearing()- Overrides:
canPerformRearingin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
updateEntityActionStateAlt
protected void updateEntityActionStateAlt() -
removeAfterChangingDimensions
public void removeAfterChangingDimensions()- Overrides:
removeAfterChangingDimensionsin classnet.minecraft.world.entity.Mob
-
setTarget
public void setTarget(net.minecraft.world.entity.LivingEntity entity) - Overrides:
setTargetin classnet.minecraft.world.entity.Mob
-
setAttackTarget
Sets the Pokémon's target.- Parameters:
entity- The Pokémon to target.skillId- The id of the move skill to execute.
-
setBlockTarget
Sets the Pokémon's target block.- Parameters:
x- The x coordinate of the target block.y- The y coordinate of the target block.z- The z coordinate of the target block.side- The direction of the block.skillId- The id of the move skill to execute.
-
tick
public void tick()- Overrides:
tickin classAbstractHasStatsEntity
-
getNumInteractions
public int getNumInteractions()Gets the number of interactions the Pokémon has.- Returns:
- The number of interactions the Pokémon has.
-
setNumInteractions
public void setNumInteractions(int newValue) Sets the number of interactions the Pokémon has.- Parameters:
newValue- The number of interactions the Pokémon has.
-
addAdditionalSaveData
public void addAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) - Overrides:
addAdditionalSaveDatain classAbstractClientEntity
-
readAdditionalSaveData
public void readAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) - Overrides:
readAdditionalSaveDatain classAbstractClientEntity
-
getUsingRidingSpecialConditions
protected boolean getUsingRidingSpecialConditions()Accounts for special cases of riding Pokémon using separate moving offsets.- Returns:
- Whether to use the moving offsets for riding players.
-
unloadEntity
public void unloadEntity()Moves the riding player off of the Pokémon, and the Pokémon off a vehicle. -
getAggressionTimer
public int getAggressionTimer() -
setAggressionTimer
public void setAggressionTimer(int aggressionTimer) -
getJumpTicks
public int getJumpTicks() -
setJumpTicks
public void setJumpTicks(int jumpTicks) -
getRidingPlayerVertical
public int getRidingPlayerVertical() -
setRidingPlayerVertical
public void setRidingPlayerVertical(int ridingPlayerVertical)
-