Class AbstractBaseEntity
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
- All Implemented Interfaces:
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>
- 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.AgeableMobGroupData
Nested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.LivingEntity.Fallsounds
Nested 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.RemovalReason
Nested 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
Modifier and TypeFieldDescriptionThe aggression behavior of the Pokémon.protected BossTier
boolean
protected EntityDataSyncManager
protected Pokemon
protected float
protected SpawnLocationType
static 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_ARMOR, INV_SLOT_SADDLE, inventory, INVENTORY_SLOT_OFFSET, isJumping, playerJumpPendingScale, sprintCounter, tailCounter, temper
Fields inherited from class net.minecraft.world.entity.animal.Animal
PARENT_AGE_AFTER_BREEDING
Fields inherited from class net.minecraft.world.entity.AgeableMob
age, BABY_START_AGE, forcedAge, forcedAgeTimer
Fields inherited from class net.minecraft.world.entity.PathfinderMob
DEFAULT_WALK_TARGET_VALUE
Fields 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, xpReward
Fields 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, zza
Fields 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, zOld
Fields inherited from interface net.minecraft.commands.CommandSource
NULL
-
Constructor Summary
ConstructorDescriptionAbstractBaseEntity
(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 TypeMethodDescriptionvoid
addAdditionalSaveData
(net.minecraft.nbt.CompoundTag nbt) boolean
belongsTo
(net.minecraft.world.entity.player.Player player) Checks if the Pokémon is owned by a player.boolean
canBeLeashed
(net.minecraft.world.entity.player.Player player) protected boolean
canRide
(net.minecraft.world.entity.Entity entity) boolean
causeFallDamage
(float distance, float damageMultiplier, net.minecraft.world.damagesource.DamageSource source) net.minecraft.world.entity.Entity
changeDimension
(net.minecraft.server.level.ServerLevel p_241206_1_) protected <A> void
protected void
boolean
int
getAge()
protected net.minecraft.sounds.SoundEvent
Gets the Pokémon's boss tier.net.minecraft.world.entity.AgeableMob
getBreedOffspring
(net.minecraft.server.level.ServerLevel world, net.minecraft.world.entity.AgeableMob mate) getColor()
protected net.minecraft.sounds.SoundEvent
net.minecraft.world.entity.EntityDimensions
getDimensions
(net.minecraft.world.entity.Pose p_213305_1_) protected @Nullable net.minecraft.sounds.SoundEvent
Gets the Pokémon's nickname, with special regex characters escaped.getForm()
net.minecraft.network.chat.Component
Gets the formatted nickname of the Pokémon.protected net.minecraft.sounds.SoundEvent
getHurtSound
(net.minecraft.world.damagesource.DamageSource p_184601_1_) Gets the Pokémon's localized pokemon name.net.minecraft.world.item.ItemStack
net.minecraft.network.chat.Component
getName()
Deprecated, for removal: This API element is subject to removal in a future version.net.minecraft.world.entity.LivingEntity
getOwner()
Gets the palettefloat
Gets 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.boolean
boolean
hasOwner()
Checks if the Pokémon has an owner.boolean
Checks if the pokemon has a custom formboolean
hurt
(net.minecraft.world.damagesource.DamageSource source, float amount) void
boolean
Checks if the Pokémon is a boss Pokémon.boolean
boolean
boolean
boolean
boolean
isInWall()
boolean
boolean
boolean
boolean
isOwnedBy
(net.minecraft.world.entity.LivingEntity entity) boolean
Checks if the palette is equal to the name providedfinal boolean
isPokemon
(RegistryValue<Species>... species) Checks if the Pokémon is one of a list of Pokémon pokemon.boolean
Checks if the Pokémon is one of a list of Pokémon pokemon.final boolean
Checks if the Pokémon is one of a list of Pokémon pokemon.boolean
boolean
boolean
boolean
isTamed()
void
onSyncedDataUpdated
(net.minecraft.network.syncher.EntityDataAccessor<?> key) void
openCustomInventoryScreen
(net.minecraft.world.entity.player.Player p_218808_) protected void
playGallopSound
(net.minecraft.world.level.block.SoundType p_190680_1_) protected void
protected void
playStepSound
(net.minecraft.core.BlockPos p_180429_1_, net.minecraft.world.level.block.state.BlockState p_180429_2_) void
readAdditionalSaveData
(net.minecraft.nbt.CompoundTag nbt) boolean
removeWhenFarAway
(double p_213397_1_) void
resetAlterations
(float scale) void
void
setAggression
(Aggression aggression) void
setBossTier
(BossTier tier) Sets the Pokémon's boss tier.void
void
setDimensions
(net.minecraft.world.entity.EntityDimensions dimensions) void
setDisableNametag
(boolean disableNametag) void
setDisableShadow
(boolean disableShadow) void
setDisableTexture
(boolean disableTexture) void
setFullbright
(boolean fullbright) void
setOverlay
(boolean overlay) void
setOwnerUUID
(UUID uuid) void
setPixelmonScale
(float scale) Sets the model scale of the Pokémon.void
setPokemon
(Pokemon pokemon) void
setSpawnLocation
(SpawnLocationType spawnLocation) Sets the Pokémon's spawn location.void
void
thunderHit
(net.minecraft.server.level.ServerLevel world, net.minecraft.world.entity.LightningBolt bolt) void
update
(EnumUpdateType... types) Updates the Pokémon's attributes client-side.Methods inherited from class net.minecraft.world.entity.animal.horse.AbstractHorse
addBehaviourGoals, aiStep, calculateFallDamage, canEatGrass, canJump, canMate, canParent, canPerformRearing, 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, getPassengersRidingOffsetY, getRiddenInput, getRiddenRotation, getRiddenSpeed, getSlot, getSoundVolume, getStandAnim, getStandingEyeHeight, getTemper, handleEating, handleEntityEvent, handleStartJump, handleStopJump, hasInventoryChanged, invalidateCaps, isArmor, isBred, isEating, isFood, isImmobile, isJumping, isStanding, isWearingArmor, makeMad, mobInteract, modifyTemper, onClimbable, onLeashDistance, onPlayerJump, positionRider, randomizeAttributes, registerGoals, setBred, setEating, setFlag, setIsJumping, setOffspringAttributes, setStanding, setTamed, setTemper, spawnTamingParticles, standIfPossible, tameWithName, tick, tickRidden, updateContainerEquipment
Methods inherited from class net.minecraft.world.entity.animal.Animal
canFallInLove, checkAnimalSpawnRules, customServerAiStep, finalizeSpawnChildFromBreeding, getExperienceReward, getInLoveTime, getLoveCause, getWalkTargetValue, isBrightEnoughToSpawn, isInLove, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItem
Methods inherited from class net.minecraft.world.entity.AgeableMob
ageBoundaryReached, ageUp, ageUp, canBreed, getSpeedUpSecondsWhenFeeding, isBaby, setAge, setBaby
Methods inherited from class net.minecraft.world.entity.PathfinderMob
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPanicking, isPathFinding, shouldStayCloseToLeashHolder, tickLeash
Methods inherited from class net.minecraft.world.entity.Mob
ate, baseTick, canAttackType, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkAndHandleImportantInteractions, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clearRestriction, convertTo, createBodyControl, createMobAttributes, createNavigation, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getAmbientSound, 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, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, onPathfindingDone, onPathfindingStart, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpawnCancelled, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, tickHeadTurn, updateControlFlags, wantsToPickUp
Methods 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, canBreatheUnderwater, canChangeDimensions, canDisableShield, canFreeze, canSpawnSoulSpeedParticle, canStandOnFluid, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, 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, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHitbox, getHurtDir, getItemInHand, getJumpBoostPower, getJumpPower, 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, setHealth, 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, wouldNotSuffocateAtTargetPose
Methods 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, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, findDimensionEntryPoint, fixupDimensions, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensionsForge, getDirection, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, 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, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, ridingOffset, rotate, save, 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, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSecondsOnFire, 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, teleportToWithTicket, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSound
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.commands.CommandSource
alwaysAccepts
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, deserializeNBT, getClassification, getEyeHeightForge, getEyeInFluidType, getFluidFallDistanceModifier, getFluidMotionScale, getFluidTypeHeight, getMaxHeightFluidType, getParts, getPersistentData, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isAddedToWorld, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, onAddedToWorld, onRemovedFromWorld, revive, serializeNBT, shouldRiderSit, shouldUpdateFluidWhileBoating
Methods inherited from interface net.minecraftforge.common.extensions.IForgeLivingEntity
canDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluid
Methods inherited from interface net.minecraft.world.entity.OwnableEntity
level
Methods inherited from interface net.minecraft.world.entity.PlayerRideableJumping
getJumpCooldown
Methods inherited from interface net.minecraft.world.entity.Saddleable
getSaddleSoundEvent
-
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()- Overrides:
defineSynchedData
in classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
define
-
isTamed
public boolean isTamed()- Overrides:
isTamed
in classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
isLeashed
public boolean isLeashed()- Overrides:
isLeashed
in classnet.minecraft.world.entity.Mob
-
canRide
protected boolean canRide(net.minecraft.world.entity.Entity entity) - Overrides:
canRide
in classnet.minecraft.world.entity.Entity
-
isSaddleable
public boolean isSaddleable()- Specified by:
isSaddleable
in interfacenet.minecraft.world.entity.Saddleable
- Overrides:
isSaddleable
in classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
isSaddled
public boolean isSaddled()- Specified by:
isSaddled
in interfacenet.minecraft.world.entity.Saddleable
- Overrides:
isSaddled
in classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
openCustomInventoryScreen
public void openCustomInventoryScreen(net.minecraft.world.entity.player.Player p_218808_) - Specified by:
openCustomInventoryScreen
in interfacenet.minecraft.world.entity.HasCustomInventoryScreen
- Overrides:
openCustomInventoryScreen
in classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
getEatingSound
@Nullable protected @Nullable net.minecraft.sounds.SoundEvent getEatingSound()- Overrides:
getEatingSound
in classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
getDeathSound
@Nullable protected net.minecraft.sounds.SoundEvent getDeathSound()- Overrides:
getDeathSound
in classnet.minecraft.world.entity.LivingEntity
-
getHurtSound
@Nullable protected net.minecraft.sounds.SoundEvent getHurtSound(net.minecraft.world.damagesource.DamageSource p_184601_1_) - Overrides:
getHurtSound
in classnet.minecraft.world.entity.LivingEntity
-
playJumpSound
protected void playJumpSound()- Overrides:
playJumpSound
in classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
getAngrySound
@Nullable protected net.minecraft.sounds.SoundEvent getAngrySound()- Overrides:
getAngrySound
in 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:
playStepSound
in classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
playGallopSound
protected void playGallopSound(net.minecraft.world.level.block.SoundType p_190680_1_) - Overrides:
playGallopSound
in classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
resetDataWatchers
public void resetDataWatchers() -
setPokemon
-
setUUID
- Overrides:
setUUID
in classnet.minecraft.world.entity.Entity
-
initBaseEntity
public void initBaseEntity() -
fireImmune
public boolean fireImmune()- Overrides:
fireImmune
in 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:
getDimensions
in 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:
getOwnerUUID
in interfacenet.minecraft.world.entity.OwnableEntity
- Overrides:
getOwnerUUID
in classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
setOwnerUUID
- Overrides:
setOwnerUUID
in 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:
getName
in interfacenet.minecraft.world.Nameable
- Overrides:
getName
in classnet.minecraft.world.entity.Entity
-
hasCustomName
public boolean hasCustomName()- Specified by:
hasCustomName
in interfacenet.minecraft.world.Nameable
- Overrides:
hasCustomName
in 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
Deprecated, for removal: This API element is subject to removal in a future version.Gets the Pokémon's nickname.- Returns:
- The Pokémon's nickname.
-
getFormattedNickname
public net.minecraft.network.chat.Component getFormattedNickname()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) -
getEscapedNickname
Gets the Pokémon's nickname, with special regex characters escaped.- Returns:
- The Pokémon's nickname, with special regex characters escaped.
-
isInWall
public boolean isInWall()- Overrides:
isInWall
in classnet.minecraft.world.entity.LivingEntity
-
getMainHandItem
public net.minecraft.world.item.ItemStack getMainHandItem()- Overrides:
getMainHandItem
in classnet.minecraft.world.entity.LivingEntity
-
isPushable
public boolean isPushable()- Overrides:
isPushable
in classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
getAge
public int getAge()- Overrides:
getAge
in classnet.minecraft.world.entity.AgeableMob
-
removeWhenFarAway
public boolean removeWhenFarAway(double p_213397_1_) - Overrides:
removeWhenFarAway
in classnet.minecraft.world.entity.animal.Animal
-
changeDimension
@Nullable public net.minecraft.world.entity.Entity changeDimension(net.minecraft.server.level.ServerLevel p_241206_1_) - Overrides:
changeDimension
in 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:
getBreedOffspring
in classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
canBeLeashed
public boolean canBeLeashed(net.minecraft.world.entity.player.Player player) - Overrides:
canBeLeashed
in classnet.minecraft.world.entity.Mob
-
hurt
public boolean hurt(net.minecraft.world.damagesource.DamageSource source, float amount) - Overrides:
hurt
in classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
thunderHit
public void thunderHit(net.minecraft.server.level.ServerLevel world, net.minecraft.world.entity.LightningBolt bolt) - Overrides:
thunderHit
in classnet.minecraft.world.entity.Entity
-
causeFallDamage
public boolean causeFallDamage(float distance, float damageMultiplier, net.minecraft.world.damagesource.DamageSource source) - Overrides:
causeFallDamage
in classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
addAdditionalSaveData
public void addAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) - Overrides:
addAdditionalSaveData
in classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
readAdditionalSaveData
public void readAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) - Overrides:
readAdditionalSaveData
in classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
onSyncedDataUpdated
public void onSyncedDataUpdated(net.minecraft.network.syncher.EntityDataAccessor<?> key) - Overrides:
onSyncedDataUpdated
in 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)
-