public abstract class AbstractBattleEntity extends AbstractInteractionsEntity
| Modifier and Type | Field and Description |
|---|---|
BattleController |
battleController
The battle the Pokémon is in.
|
protected int |
groupId |
java.util.List<java.lang.String> |
relearnableEvolutionMoves
Moves that may be relearned due to them being prompted during an evolution.
|
static DataSync<AbstractBattleEntity,java.lang.Integer> |
SYNC_GROUP_ID |
aggressionTimer, aiHelper, initAir, interaction, isFlying, jumpTicks, mountBoost, numInteractions, ridingInitialised, ridingPlayerVertical, skillId, SYNC_INTERACTIONS, targetSide, targetX, targetY, targetZanimated, evoAnimTicks, evolvingVal, evoStage, fadeCount, heightDiff, lengthDiff, modelSlot, overrideTexture, parameterId, parameterId2, spriteModel, SYNC_ANIMATED, SYNC_DYNAMAX_SCALE, SYNC_EVO_STAGE, SYNC_MODEL_SLOT, SYNC_OVERRIDE_TEXTURE, SYNC_SPRITE_MODEL, SYNC_TRANSFORMATION, SYNC_WIREFRAME, transformed, transformedParticles, transformedTexture, widthDiff, wireFrameaggression, 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_DISABLEcanGallop, gallopSoundCounter, inventory, isJumping, playerJumpPendingScale, sprintCounter, tailCounter, temperambientSoundTime, armorDropChances, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelector, xpRewardanimationPosition, animationSpeed, animationSpeedOld, animStep, animStepO, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_HEALTH_ID, DATA_LIVING_ENTITY_FLAGS, dead, deathScore, deathTime, fallFlyTicks, flyingSpeed, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, lyHeadRot, noActionTime, noJumpDelay, oAttackAnim, oRun, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, swinging, swingingArm, swingTime, timeOffs, useItem, useItemRemaining, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zzablocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, ENTITY_COUNTER, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, type, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld| Constructor and Description |
|---|
AbstractBattleEntity(net.minecraft.entity.EntityType<? extends AbstractBattleEntity> type,
net.minecraft.world.World par1World)
Initializes the Pokémon's battle info.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
defineSynchedData() |
java.util.List<ImmutableAttack> |
getAttacksAtLevel(int level)
Gets the attacks that the Pokémon can learn at the specified pokemonLevel.
|
int |
getGroupId() |
BattleParticipant |
getParticipant()
Returns the Pokémon's participant in battle.
|
int |
getPartyPosition()
Gets the position of the Pokémon in its owner's party.
|
PixelmonWrapper |
getPixelmonWrapper()
Finds the Pokémon's PixelmonWrapper.
|
NPCTrainer |
getTrainer()
Gets the Trainer who owns the Pokémon.
|
boolean |
hurt(net.minecraft.util.DamageSource source,
float amount) |
boolean |
inGroup() |
protected boolean |
isValidTarget(net.minecraft.entity.Entity entity)
Determines whether the specified entity is a valid target.
|
boolean |
learnsAttackAtLevel(int level)
Checks whether the Pokémon learns an attack at the specified pokemonLevel.
|
void |
onEndBattle()
Handles end-of-battle effects for the Pokémon.
|
boolean |
removeWhenFarAway(double p_213397_1_) |
void |
setGroupId(int groupId) |
void |
setHealth(float par1) |
void |
setPixelmonWrapper(PixelmonWrapper newWrapper)
Sets the Pokémon's PixelmonWrapper.
|
void |
startBattle(BattleParticipant p1,
BattleParticipant p2)
Starts a battle with the Pokémon.
|
void |
startBattle(BattleParticipant p1,
BattleParticipant p2,
BattleRules rules)
Starts a battle with the Pokémon.
|
void |
startBattle(BattleParticipant p1,
BattleParticipant p2,
BattleType battleType)
Starts a battle with the Pokémon.
|
addAdditionalSaveData, addBehaviourGoals, baseTick, canFly, canSurf, createNavigation, getAggressionTimer, getAIHelper, getControllingPassenger, getJumpTicks, getNumInteractions, getPassengersRidingOffset, getRidingPlayerVertical, getUsingRidingSpecialConditions, mobInteract, onSendout, readAdditionalSaveData, registerGoals, removeAfterChangingDimensions, resetAI, setAggressionTimer, setAttackTarget, setBlockTarget, setJumpTicks, setNumInteractions, setRidingPlayerVertical, setTarget, tick, unloadEntity, updateEntityActionStateAltcanBreatheUnderwater, evolve, getDefaultSpawnLocation, getFlyingParameters, getForm, getFormIncludeTransformed, getLvl, getNumForms, getPokerus, getSwimmingParameters, setBossTier, setForm, setForm, updateHealth, updateStatsaddDynamaxScale, cancelTransform, checkAnimation, getAmbientSound, getAnimationVariables, getCurrentAnimation, getDynamaxScale, getEvoStage, getEyeHeight, getFlyingDelayCounter, getModel, getModelSlot, getPokemon, getRealTexture, getRenderColor, getScaleFactor, getSoundVolume, getSprite, getTexture, getTextureNoCheck, getTransformed, initAnimation, initBaseEntity, isAnimated, isEvolving, isSpriteModel, isWireFrame, jumpInLiquid, resetDataWatchers, setAnimated, setAnimation, setDynamaxScale, setEvolutionAnimationStage, setEvoStage, setModelSlot, setOverrideTexture, setPos, setRenderColor, setSpriteModel, setWireFrame, transform, transformServer, updateSize, updateTransformedbelongsTo, canBeLeashed, canRide, causeFallDamage, changeDimension, define, fireImmune, getAge, getAggression, getAngrySound, getBossTier, getBreedOffspring, getColor, getDeathSound, getDimensions, getEatingSound, getEscapedNickname, getGenderProperties, getHurtSound, getLocalizedName, getMainHandItem, getName, getNickname, getOwner, getOwnerUUID, getPalette, getPixelmonScale, getPlayerParty, getPlayerStorage, getPokemonName, getSpawnLocation, getSpecies, getStorage, hasCustomName, hasOwner, hasPalette, isBossPokemon, isDisableNametag, isDisableShadow, isDisableTexture, isFullbright, isInWall, isLeashed, isLegendary, isOverlay, isOwnedBy, isPalette, isPokemon, isPokemon, isPokemon, isPushable, isSaddleable, isSaddled, isTamed, onSyncedDataUpdated, openInventory, playGallopSound, playJumpSound, playStepSound, resetAlterations, setAggression, setColor, setDimensions, setDisableNametag, setDisableShadow, setDisableTexture, setFullbright, setOverlay, setOwnerUUID, setPixelmonScale, setPokemon, setSpawnLocation, setUUID, thunderHit, updateaiStep, calculateFallDamage, canBeControlledByRider, canEatGrass, canJump, canMate, canParent, canWearArmor, containerChanged, createBaseHorseAttributes, createInventory, doPlayerRide, dropEquipment, equipSaddle, fedFood, finalizeSpawn, followMommy, generateRandomJumpStrength, generateRandomMaxHealth, generateRandomSpeed, getAmbientSoundInterval, getCapability, getCustomJump, getDismountLocationForPassenger, getEatAnim, getFlag, getInventorySize, getMaxSpawnClusterSize, getMaxTemper, getMouthAnim, getStandAnim, getStandingEyeHeight, getTemper, handleEating, handleEntityEvent, handleStartJump, handleStopJump, invalidateCaps, isArmor, isBred, isEating, isFood, isImmobile, isJumping, isStanding, isWearingArmor, makeMad, modifyTemper, onClimbable, onLeashDistance, onPlayerJump, positionRider, randomizeAttributes, setBred, setEating, setFlag, setIsJumping, setOffspringAttributes, setSlot, setStanding, setTamed, setTemper, spawnTamingParticles, tameWithName, travel, updateContainerEquipmentcanFallInLove, checkAnimalSpawnRules, customServerAiStep, getExperienceReward, getInLoveTime, getLoveCause, getMyRidingOffset, getWalkTargetValue, isInLove, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItemageBoundaryReached, ageUp, ageUp, canBreed, isBaby, setAge, setBabycheckSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, tickLeashate, canAttack, canAttackType, canCutCorner, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkAndHandleImportantInteractions, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, convertTo, createBodyControl, createLootContext, createMobAttributes, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getEquipmentSlotForItem, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMoveControl, getNavigation, getPathfindingMalus, getRestrictCenter, getRestrictRadius, getSensing, getTarget, hasRestriction, interact, isAggressive, isControlledByLocalInstance, isEffectiveAi, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isValidSlotForItem, isWithinRestriction, isWithinRestriction, lookAt, onOffspringSpawnedFromEgg, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, requiresCustomPersistence, restrictTo, sendDebugPackets, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpeed, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, tickHeadTurn, updateControlFlags, wantsToPickUpactuallyHurt, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, canAttack, canBeAffected, canSee, canSpawnSoulSpeedParticle, canStandOnFluid, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doPush, dropAllDeathLoot, dropExperience, eat, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAddEntityPacket, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getBrain, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEyeHeight, getFallDamageSound, getFallFlyingTicks, getFeetBlockState, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMaxHealth, getMobType, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, heal, hurtArmor, hurtCurrentlyUsedShield, increaseAirSupply, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isDeadOrDying, isFallFlying, isHolding, isHolding, isInvertedHealAndHarm, isPickable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, makeBrain, markHurt, onChangedBlock, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onItemPickup, onLeaveCombat, onSoulSpeedBlock, outOfWorld, playBlockFallSound, playEquipSound, push, pushEntities, randomTeleport, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, rideableUnderWater, rideTick, setAbsorptionAmount, setArrowCount, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, spawnSoulSpeedParticle, startAutoSpinAttack, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, triggerItemUseEffects, tryAddSoulSpeed, updateEffectVisibility, updateFallFlying, updateInvisibilityStatus, updateSwingTimeabsMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getOnPos, getPacketCoordinates, getPassengers, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getY, getY, getZ, getZ, handleInsidePortal, handleNetherPortal, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killed, lavaHurt, lerpMotion, limitPistonMovement, load, makeFlySound, makeStuckInBlock, maybeBackOffFromEdge, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playerTouch, playFlySound, playSound, playSwimSound, position, processPortalCooldown, push, reapplyPosition, refreshDimensions, remove, remove, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setLevel, setLocationFromBoundingbox, setNoGravity, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSwimming, setViewScale, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, teleportTo, teleportToWithTicket, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimmingareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCapsclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final DataSync<AbstractBattleEntity,java.lang.Integer> SYNC_GROUP_ID
public BattleController battleController
public java.util.List<java.lang.String> relearnableEvolutionMoves
protected int groupId
public AbstractBattleEntity(net.minecraft.entity.EntityType<? extends AbstractBattleEntity> type, net.minecraft.world.World par1World)
par1World - The world the Pokémon is in.protected void defineSynchedData()
defineSynchedData in class AbstractInteractionsEntitypublic boolean removeWhenFarAway(double p_213397_1_)
removeWhenFarAway in class AbstractBaseEntitypublic boolean inGroup()
public int getGroupId()
public void setGroupId(int groupId)
public void startBattle(BattleParticipant p1, BattleParticipant p2)
p1 - One of the participants of the battle.p2 - The other participant in the battle.public void startBattle(BattleParticipant p1, BattleParticipant p2, BattleType battleType)
p1 - One of the participants of the battle.p2 - The other participant in the battle.battleType - The type of battle to start.public void startBattle(BattleParticipant p1, BattleParticipant p2, BattleRules rules)
p1 - One of the participants of the battle.p2 - The other participant in the battle.rules - The rules to use during the battle.public void onEndBattle()
@Nullable public NPCTrainer getTrainer()
public boolean hurt(net.minecraft.util.DamageSource source,
float amount)
hurt in class AbstractBaseEntitypublic java.util.List<ImmutableAttack> getAttacksAtLevel(int level)
level - The pokemonLevel to get attacks for.public boolean learnsAttackAtLevel(int level)
level - The pokemonLevel to check.protected boolean isValidTarget(net.minecraft.entity.Entity entity)
entity - The entity to check.public void setHealth(float par1)
setHealth in class AbstractHasStatsEntitypublic BattleParticipant getParticipant()
public PixelmonWrapper getPixelmonWrapper()
public void setPixelmonWrapper(PixelmonWrapper newWrapper)
newWrapper - The PixelmonWrapper to set to the Pokémon.public int getPartyPosition()
AbstractHasStatsEntitygetPartyPosition in class AbstractHasStatsEntity