Class AbstractBaseEntity
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
- All Implemented Interfaces:
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:
AbstractClientEntity
public abstract class AbstractBaseEntity
extends net.minecraft.world.entity.animal.horse.AbstractHorse
Base information for 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 TypeFieldDescriptionThe aggression behavior of the Pokémon.protected BossTierbooleanprotected EntityDataSyncManagerprotected Pokemonprotected floatprotected SpawnLocationTypestatic final DataSync<? extends AbstractBaseEntity, BossTier> static final DataSync<? extends AbstractBaseEntity, Optional<Color>> static final DataSync<? extends AbstractBaseEntity, Boolean> static final DataSync<? extends AbstractBaseEntity, Integer> static final DataSync<? extends AbstractBaseEntity, Boolean> static final DataSync<? extends AbstractBaseEntity, Boolean> static final DataSync<? extends AbstractBaseEntity, Optional<UUID>> static final DataSync<? extends AbstractBaseEntity, Float> static final DataSync<? extends AbstractBaseEntity, Boolean> static final DataSync<? extends AbstractBaseEntity, SpawnLocationType> static final DataSync<? extends AbstractBaseEntity, Boolean> Fields 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
ConstructorsConstructorDescriptionAbstractBaseEntity(net.minecraft.world.entity.EntityType<? extends AbstractBaseEntity> type, net.minecraft.world.level.Level par1World) Initializes the Pokémon entity and its data watcher. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) booleanbelongsTo(net.minecraft.world.entity.player.Player player) Checks if the Pokémon is owned by a player.booleanprotected booleancanRide(net.minecraft.world.entity.Entity entity) booleancauseFallDamage(float distance, float damageMultiplier, net.minecraft.world.damagesource.DamageSource source) net.minecraft.world.entity.EntitychangeDimension(net.minecraft.world.level.portal.DimensionTransition p_241206_1_) protected <A> voiddefine(net.minecraft.network.syncher.SynchedEntityData.Builder builder, DataSync<?, A> sync, A value) protected voiddefineSynchedData(net.minecraft.network.syncher.SynchedEntityData.Builder builder) booleanintgetAge()protected net.minecraft.sounds.SoundEventGets the Pokémon's boss tier.net.minecraft.world.entity.AgeableMobgetBreedOffspring(net.minecraft.server.level.ServerLevel world, net.minecraft.world.entity.AgeableMob mate) getColor()protected net.minecraft.sounds.SoundEventnet.minecraft.world.entity.EntityDimensionsgetDimensions(net.minecraft.world.entity.Pose p_213305_1_) protected @Nullable net.minecraft.sounds.SoundEventgetForm()protected net.minecraft.sounds.SoundEventgetHurtSound(net.minecraft.world.damagesource.DamageSource p_184601_1_) Gets the Pokémon's localized pokemon name.net.minecraft.world.item.ItemStacknet.minecraft.network.chat.ComponentgetName()net.minecraft.network.chat.MutableComponentGets the formatted nickname of the Pokémon.net.minecraft.world.entity.LivingEntitygetOwner()Gets the palettefloatGets the model scale of the Pokémon.Gets the Pokémon's unlocalized pokemon name.Gets the Pokémon's spawn location.Gets the pokemon of the Pokémon.Gets the storage that contains the Pokémon.booleanbooleanhasOwner()Checks if the Pokémon has an owner.booleanChecks if the pokemon has a custom formbooleanhurt(net.minecraft.world.damagesource.DamageSource source, float amount) voidbooleanChecks if the Pokémon is a boss Pokémon.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisOwnedBy(net.minecraft.world.entity.LivingEntity entity) booleanChecks if the palette is equal to the name providedfinal booleanisPokemon(RegistryValue<Species>... species) Checks if the Pokémon is one of a list of Pokémon pokemon.booleanChecks if the Pokémon is one of a list of Pokémon pokemon.final booleanChecks if the Pokémon is one of a list of Pokémon pokemon.booleanbooleanbooleanbooleanisTamed()booleanbooleanvoidonSyncedDataUpdated(net.minecraft.network.syncher.EntityDataAccessor<?> key) voidopenCustomInventoryScreen(net.minecraft.world.entity.player.Player p_218808_) protected voidplayGallopSound(net.minecraft.world.level.block.SoundType p_190680_1_) protected voidprotected voidplayStepSound(net.minecraft.core.BlockPos p_180429_1_, net.minecraft.world.level.block.state.BlockState p_180429_2_) voidreadAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) booleanremoveWhenFarAway(double p_213397_1_) voidresetAlterations(float scale) voidvoidsetAggression(Aggression aggression) voidsetBossTier(BossTier tier) Sets the Pokémon's boss tier.voidvoidsetDimensions(net.minecraft.world.entity.EntityDimensions dimensions) voidsetDisableNametag(boolean disableNametag) voidsetDisableShadow(boolean disableShadow) voidsetDisableTexture(boolean disableTexture) voidsetFullbright(boolean fullbright) voidsetOverlay(boolean overlay) voidsetOwnerUUID(UUID uuid) voidsetPixelmonScale(float scale) Sets the model scale of the Pokémon.voidsetPokemon(Pokemon pokemon) voidsetSpawnLocation(SpawnLocationType spawnLocation) Sets the Pokémon's spawn location.voidvoidthunderHit(net.minecraft.server.level.ServerLevel world, net.minecraft.world.entity.LightningBolt bolt) voidupdate(EnumUpdateType... types) Updates the Pokémon's attributes client-side.Methods inherited from class net.minecraft.world.entity.animal.horse.AbstractHorse
addBehaviourGoals, aiStep, canEatGrass, canJump, canMate, canParent, canPerformRearing, 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, getPassengerAttachmentPoint, getRiddenInput, getRiddenRotation, getRiddenSpeed, getSlot, getSoundVolume, getStandAnim, getTemper, handleEating, handleEntityEvent, handleLeashAtDistance, handleStartJump, handleStopJump, hasInventoryChanged, isBred, isEating, isFood, isImmobile, isJumping, isStanding, makeMad, mobInteract, modifyTemper, onClimbable, onPlayerJump, positionRider, randomizeAttributes, registerGoals, setBred, setEating, setFlag, setIsJumping, setOffspringAttributes, setStanding, setTamed, setTemper, spawnTamingParticles, standIfPossible, syncSaddleToClients, tameWithName, tick, 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, baseTick, canAttackType, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, canUseSlot, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clampHeadRotationToBody, clearRestriction, convertTo, createBodyControl, createMobAttributes, createNavigation, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, dropPreservedEquipment, dropPreservedEquipment, enchantSpawnedArmor, enchantSpawnedWeapon, equip, equip, equipItemIfPossible, getAmbientSound, 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, jumpInLiquid, leashTooFarBehaviour, lookAt, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, pickUpItem, playAmbientSound, playAttackSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setBodyArmorItem, setCanPickUpLoot, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashData, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpawnCancelled, setSpeed, setTarget, 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, canBreatheUnderwater, 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, setHealth, 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, getEyeY, 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, syncData, 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, setData, syncDataMethods 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 net.minecraft.world.entity.Saddleable
getSaddleSoundEventMethods inherited from interface net.minecraft.world.scores.ScoreHolder
getFeedbackDisplayName
-
Field Details
-
SYNC_BOSS_MODE
-
SYNC_MAX_HP
-
SYNC_SPAWN_LOCATION
-
SYNC_SCALE
-
SYNC_OWNER_UUID
-
SYNC_NAMETAG_DISABLE
-
SYNC_SHADOW_DISABLE
-
SYNC_OVERLAY
-
SYNC_COLOR
-
SYNC_TEXTURE_DISABLE
-
SYNC_FULLBRIGHT
-
pokemon
-
hitByPokeball
-
canDespawn
public boolean canDespawn -
aggression
The aggression behavior of the Pokémon. -
spawnLocation
-
bossTier
-
scale
protected float scale -
dataSyncManager
-
-
Constructor Details
-
AbstractBaseEntity
public AbstractBaseEntity(net.minecraft.world.entity.EntityType<? extends AbstractBaseEntity> type, net.minecraft.world.level.Level par1World) Initializes the Pokémon entity and its data watcher.- Parameters:
par1World- The world the Pokémon is in.
-
-
Method Details
-
defineSynchedData
protected void defineSynchedData(net.minecraft.network.syncher.SynchedEntityData.Builder builder) - Overrides:
defineSynchedDatain classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
define
protected <A> void define(net.minecraft.network.syncher.SynchedEntityData.Builder builder, DataSync<?, A> sync, A value) -
isTamed
public boolean isTamed()- Overrides:
isTamedin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
isLeashed
public boolean isLeashed() -
canRide
protected boolean canRide(net.minecraft.world.entity.Entity entity) - Overrides:
canRidein classnet.minecraft.world.entity.Entity
-
isSaddleable
public boolean isSaddleable()- Specified by:
isSaddleablein interfacenet.minecraft.world.entity.Saddleable- Overrides:
isSaddleablein classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
isSaddled
public boolean isSaddled()- Specified by:
isSaddledin interfacenet.minecraft.world.entity.Saddleable- Overrides:
isSaddledin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
openCustomInventoryScreen
public void openCustomInventoryScreen(net.minecraft.world.entity.player.Player p_218808_) - Specified by:
openCustomInventoryScreenin interfacenet.minecraft.world.entity.HasCustomInventoryScreen- Overrides:
openCustomInventoryScreenin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
getEatingSound
@Nullable protected @Nullable net.minecraft.sounds.SoundEvent getEatingSound()- Overrides:
getEatingSoundin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
getDeathSound
@Nullable protected net.minecraft.sounds.SoundEvent getDeathSound()- Overrides:
getDeathSoundin classnet.minecraft.world.entity.LivingEntity
-
getHurtSound
@Nullable protected net.minecraft.sounds.SoundEvent getHurtSound(net.minecraft.world.damagesource.DamageSource p_184601_1_) - Overrides:
getHurtSoundin classnet.minecraft.world.entity.LivingEntity
-
playJumpSound
protected void playJumpSound()- Overrides:
playJumpSoundin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
getAngrySound
@Nullable protected net.minecraft.sounds.SoundEvent getAngrySound()- Overrides:
getAngrySoundin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
playStepSound
protected void playStepSound(net.minecraft.core.BlockPos p_180429_1_, net.minecraft.world.level.block.state.BlockState p_180429_2_) - Overrides:
playStepSoundin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
playGallopSound
protected void playGallopSound(net.minecraft.world.level.block.SoundType p_190680_1_) - Overrides:
playGallopSoundin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
resetDataWatchers
public void resetDataWatchers() -
setPokemon
-
setUUID
- Overrides:
setUUIDin classnet.minecraft.world.entity.Entity
-
initBaseEntity
public void initBaseEntity() -
fireImmune
public boolean fireImmune()- Overrides:
fireImmunein classnet.minecraft.world.entity.Entity
-
setDimensions
public void setDimensions(net.minecraft.world.entity.EntityDimensions dimensions) -
getDimensions
public net.minecraft.world.entity.EntityDimensions getDimensions(net.minecraft.world.entity.Pose p_213305_1_) - Overrides:
getDimensionsin classnet.minecraft.world.entity.LivingEntity
-
hasPalette
public boolean hasPalette()Checks if the pokemon has a custom form- Returns:
- True if not default
-
getPalette
Gets the palette- Returns:
- The palette
-
getGenderProperties
-
isPalette
Checks if the palette is equal to the name provided- Parameters:
paletteName- The name of the palette- Returns:
- True if a match
-
getPokemon
-
getForm
-
getSpecies
Gets the pokemon of the Pokémon.- Returns:
- The pokemon of the Pokémon.
-
isPokemon
Checks if the Pokémon is one of a list of Pokémon pokemon.- Parameters:
species- The list of Pokémon that this Pokémon can be.- Returns:
- Whether the Pokémon is one of the list of Pokémon pokemon.
-
isPokemon
Checks if the Pokémon is one of a list of Pokémon pokemon.- Parameters:
species- The list of Pokémon that this Pokémon can be.- Returns:
- Whether the Pokémon is one of the list of Pokémon pokemon.
-
isPokemon
Checks if the Pokémon is one of a list of Pokémon pokemon.- Parameters:
species- The list of Pokémon that this Pokémon can be.- Returns:
- Whether the Pokémon is one of the list of Pokémon pokemon.
-
getBossTier
Gets the Pokémon's boss tier.- Returns:
- The Pokémon's boss tier.
-
setBossTier
Sets the Pokémon's boss tier.- Parameters:
tier- The Pokémon's boss tier.
-
isBossPokemon
public boolean isBossPokemon()Checks if the Pokémon is a boss Pokémon.- Returns:
- Whether the Pokémon is a boss Pokémon.
-
isLegendary
public boolean isLegendary() -
getAggression
-
setAggression
-
getSpawnLocation
Gets the Pokémon's spawn location.- Returns:
- The Pokémon's spawn location.
-
setSpawnLocation
Sets the Pokémon's spawn location.- Parameters:
spawnLocation- The Pokémon's spawn location.
-
hasOwner
public boolean hasOwner()Checks if the Pokémon has an owner.- Returns:
- Whether the Pokémon has an owner.
-
getOwnerUUID
- Specified by:
getOwnerUUIDin interfacenet.minecraft.world.entity.OwnableEntity- Overrides:
getOwnerUUIDin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
setOwnerUUID
- Overrides:
setOwnerUUIDin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
getOwner
@Nullable public net.minecraft.world.entity.LivingEntity getOwner() -
isOwnedBy
public boolean isOwnedBy(net.minecraft.world.entity.LivingEntity entity) -
belongsTo
public boolean belongsTo(net.minecraft.world.entity.player.Player player) Checks if the Pokémon is owned by a player.- Parameters:
player- The player to check for owning the Pokémon.- Returns:
- Whether the Pokémon is owned by a player.
-
update
Updates the Pokémon's attributes client-side.- Parameters:
types- The types of data to update.
-
getStorage
Gets the storage that contains the Pokémon. This could be null or even a PCBox.- Returns:
- The storage containing the Pokémon.
-
getPlayerParty
-
getPlayerStorage
-
getName
public net.minecraft.network.chat.Component getName()- Specified by:
getNamein interfacenet.minecraft.world.Nameable- Overrides:
getNamein classnet.minecraft.world.entity.Entity
-
hasCustomName
public boolean hasCustomName()- Specified by:
hasCustomNamein interfacenet.minecraft.world.Nameable- Overrides:
hasCustomNamein classnet.minecraft.world.entity.Entity
-
getPokemonName
Gets the Pokémon's unlocalized pokemon name.- Returns:
- The Pokémon's unlocalized pokemon name.
-
getLocalizedName
Gets the Pokémon's localized pokemon name.- Returns:
- The Pokémon's localized pokemon name.
-
getNickname
public net.minecraft.network.chat.MutableComponent getNickname()Gets the formatted nickname of the Pokémon.- Returns:
- The formatted nickname of the Pokémon.
-
getPixelmonScale
public float getPixelmonScale()Gets the model scale of the Pokémon.- Returns:
- The model scale of the Pokémon.
-
setPixelmonScale
public void setPixelmonScale(float scale) Sets the model scale of the Pokémon.- Parameters:
scale- The model scale of the Pokémon.
-
resetAlterations
public void resetAlterations(float scale) -
getMainHandItem
public net.minecraft.world.item.ItemStack getMainHandItem()- Overrides:
getMainHandItemin classnet.minecraft.world.entity.LivingEntity
-
isPushable
public boolean isPushable()- Overrides:
isPushablein classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
getAge
public int getAge()- Overrides:
getAgein classnet.minecraft.world.entity.AgeableMob
-
removeWhenFarAway
public boolean removeWhenFarAway(double p_213397_1_) - Overrides:
removeWhenFarAwayin classnet.minecraft.world.entity.animal.Animal
-
changeDimension
@Nullable public net.minecraft.world.entity.Entity changeDimension(net.minecraft.world.level.portal.DimensionTransition p_241206_1_) - Overrides:
changeDimensionin classnet.minecraft.world.entity.Entity
-
getBreedOffspring
@Nullable public net.minecraft.world.entity.AgeableMob getBreedOffspring(net.minecraft.server.level.ServerLevel world, net.minecraft.world.entity.AgeableMob mate) - Overrides:
getBreedOffspringin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
canBeLeashed
public boolean canBeLeashed()- Specified by:
canBeLeashedin interfacenet.minecraft.world.entity.Leashable- Overrides:
canBeLeashedin classnet.minecraft.world.entity.Mob
-
hurt
public boolean hurt(net.minecraft.world.damagesource.DamageSource source, float amount) - Overrides:
hurtin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
thunderHit
public void thunderHit(net.minecraft.server.level.ServerLevel world, net.minecraft.world.entity.LightningBolt bolt) - Overrides:
thunderHitin classnet.minecraft.world.entity.Entity
-
causeFallDamage
public boolean causeFallDamage(float distance, float damageMultiplier, net.minecraft.world.damagesource.DamageSource source) - Overrides:
causeFallDamagein classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
addAdditionalSaveData
public void addAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) - Overrides:
addAdditionalSaveDatain classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
readAdditionalSaveData
public void readAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) - Overrides:
readAdditionalSaveDatain classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
onSyncedDataUpdated
public void onSyncedDataUpdated(net.minecraft.network.syncher.EntityDataAccessor<?> key) - Specified by:
onSyncedDataUpdatedin interfacenet.minecraft.network.syncher.SyncedDataHolder- Overrides:
onSyncedDataUpdatedin classnet.minecraft.world.entity.AgeableMob
-
isDisableNametag
public boolean isDisableNametag() -
setDisableNametag
public void setDisableNametag(boolean disableNametag) -
isDisableShadow
public boolean isDisableShadow() -
setDisableShadow
public void setDisableShadow(boolean disableShadow) -
isOverlay
public boolean isOverlay() -
setOverlay
public void setOverlay(boolean overlay) -
getColor
-
setColor
-
isDisableTexture
public boolean isDisableTexture() -
setDisableTexture
public void setDisableTexture(boolean disableTexture) -
isFullbright
public boolean isFullbright() -
setFullbright
public void setFullbright(boolean fullbright) -
isType
-
isType
-