public class PixelmonEntity extends AbstractHoldsItemsEntity
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<java.util.UUID> |
cameraCapturedPlayers
A list of player that have shot the Pokemon with Camera.
|
boolean |
canMove
Whether the Pokémon can move around.
|
int |
despawnCounter
Counter for non-Legendary Pokémon despawning.
|
boolean |
grounded |
static java.util.ArrayList<IInteraction> |
interactionList
A list of possible interactions the Pokémon has.
|
static int |
intMaxTicksToDespawn
Maximum amount of ticks to wait before despawning.
|
static int |
intMinTicksToDespawn
Minimum amount of ticks to wait before despawning.
|
int |
legendaryTicks
Counter for Legendary Pokémon despawning.
|
PixelmonSpawnerTileEntity |
spawner
The Pixelmon spawner that spawned the Pokémon.
|
boolean |
stopRender
Whether to stop rendering the Pokémon due to evolving into a different
Pokémon.
|
static int |
TICKSPERSECOND
Number of ticks per second in Minecraft.
|
lastFlyingState, lastSpeed, lastStrafe, lastStrafeUp, MAX_MOVE_MULTIPLIER, MIN_MOVE_MULTIPLIER, prevRotationRoll, rotationRoll, SYNC_FLYING, SYNC_HOVERING, takeOffTicks
battleController, groupId, relearnableEvolutionMoves, SYNC_GROUP_ID
aggressionTimer, aiHelper, initAir, interaction, isFlying, jumpTicks, mountBoost, numInteractions, ridingInitialised, ridingPlayerVertical, skillId, SYNC_INTERACTIONS, targetSide, targetX, targetY, targetZ
animated, 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, wireFrame
aggression, bossTier, canDespawn, dataSyncManager, hitByPokeball, pokemon, scale, spawnLocation, SYNC_BOSS_MODE, SYNC_COLOR, SYNC_FULLBRIGHT, SYNC_MAX_HP, SYNC_NAMETAG_DISABLE, SYNC_OVERLAY, SYNC_OWNER_UUID, SYNC_SCALE, SYNC_SHADOW_DISABLE, SYNC_SPAWN_LOCATION, SYNC_TEXTURE_DISABLE
canGallop, gallopSoundCounter, inventory, isJumping, playerJumpPendingScale, sprintCounter, tailCounter, temper
ambientSoundTime, armorDropChances, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelector, xpReward
animationPosition, 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, zza
blocksBuilding, 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 |
---|
PixelmonEntity(net.minecraft.entity.EntityType<PixelmonEntity> type,
net.minecraft.world.World world) |
PixelmonEntity(net.minecraft.world.World world,
net.minecraft.nbt.CompoundNBT nbt) |
PixelmonEntity(net.minecraft.world.World world,
Pokemon pokemon)
Sets up the Pokémon.
|
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalSaveData(net.minecraft.nbt.CompoundNBT nbt) |
void |
aiStep()
LivingEntity's aiStep() code
Overwritten here so that Pokémon entities don't heal 1 health at random times during battle,
which was caused by the AbstractHorseEntity, and which was causing issues where
the Pokémon could survive at 0 health, making battles unable to be ended.
|
void |
baseTick()
Called frequently so the entity can update its state every tick as required.
|
boolean |
canBeRiddenInWater(net.minecraft.entity.Entity rider) |
boolean |
canChangeDimensions() |
boolean |
canStandOnFluid(net.minecraft.fluid.Fluid fluid)
Allows Pokémon to stand/walk on water, lava,
or a liquid from another mod if their form has the correct tag.
|
net.minecraft.util.ActionResultType |
checkAndHandleImportantInteractions(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand) |
boolean |
checkSpawnRules(net.minecraft.world.IWorld p_213380_1_,
net.minecraft.entity.SpawnReason p_213380_2_) |
void |
clearAttackTarget()
Clears the Pokémon's attack target.
|
void |
die(net.minecraft.util.DamageSource cause) |
static boolean |
displacePokemonIfShouldered(net.minecraft.entity.player.ServerPlayerEntity player,
java.util.UUID uuid) |
void |
exposeInfo(net.minecraft.entity.player.ServerPlayerEntity player) |
net.minecraft.entity.EntityClassification |
getClassification(boolean forSpawnCount) |
LensInfoPacket |
getClientOnlyInfo() |
net.minecraft.util.math.vector.Vector3d |
getFluidFallingAdjustedMovement(double p_233626_1_,
boolean p_233626_3_,
net.minecraft.util.math.vector.Vector3d p_233626_4_) |
int |
getFlyingCharges() |
float |
getFlyPower() |
int |
getHoverTicks() |
int |
getLastJump() |
int |
getMovementTick() |
net.minecraft.entity.LivingEntity |
getOwner() |
net.minecraft.entity.EntityClassification |
getSpawnReplaceClassification() |
net.minecraft.util.ResourceLocation |
getTexture()
Gets the texture of the Pokémon.
|
double |
getYCentre() |
void |
hideInfo(net.minecraft.entity.player.ServerPlayerEntity player) |
boolean |
hurt(net.minecraft.util.DamageSource source,
float amount) |
boolean |
isLoaded()
This is added to maintain backward compatibility with sidemods
|
boolean |
isLoaded(boolean checkChunk)
Determines whether the Pokémon is spawned in the world.
|
boolean |
isRaidPokemon() |
boolean |
isUnbattleable()
Quick redirect for
Pokemon.isUncatchable() |
boolean |
isUncatchable()
Quick redirect for
Pokemon.isUncatchable() |
void |
onLanding() |
void |
onPlayerJump(int power) |
void |
readAdditionalSaveData(net.minecraft.nbt.CompoundNBT nbt) |
void |
releaseFromPokeball()
Releases the Pokémon from its Poké Ball.
|
void |
removeAfterChangingDimensions() |
boolean |
removeWhenFarAway(double p_213397_1_) |
void |
retrieve(java.lang.String pokemonRetrievedEventReason)
Catches the Pokémon in a Poké Ball.
|
boolean |
save(net.minecraft.nbt.CompoundNBT p_70039_1_) |
void |
setClientOnlyInfo(LensInfoPacket info) |
void |
setFlyingCharges(java.lang.Integer flyingCharges) |
void |
setFlyPower(float flyPower) |
void |
setHoverTicks(int hoverTicks) |
void |
setLastJump(int lastJump) |
void |
setPriorForm(Stats form) |
void |
setSpawnerParent(PixelmonSpawnerTileEntity spawner)
Sets the origin Pixelmon spawner of the Pokémon.
|
void |
setSpawnReplaceClassification(net.minecraft.entity.EntityClassification type) |
boolean |
shouldRender(double p_145770_1_,
double p_145770_3_,
double p_145770_5_) |
void |
startEvolution(Evolution evolution,
java.lang.String cause)
Starts the Pokémon's evolution.
|
boolean |
testInteractEvolution(net.minecraft.item.ItemStack stack) |
boolean |
testLevelEvolution(int level)
Tries to evolve the Pokémon if it evolves from leveling up,
and will fail if the Pokémon has an everstone.
|
boolean |
testTickingEvolution() |
boolean |
testTradeEvolution(Species with) |
void |
tick() |
void |
tickLeash() |
void |
unloadEntity()
Moves the riding player off of the Pokémon, and the Pokémon off a vehicle.
|
protected void |
updateControlFlags() |
void |
updateDespawn() |
dropBossItems, dropNormalItems
calcMoveSpeed, canBeControlledByRider, causeFallDamage, defineSynchedData, deserializeNBT, doJump, getCanFly, getFallRate, getFlyHeight, getFlyingDirection, getHoverRotationPitch, getJumpPower, getMovement, getMoveMultiplier, getStaysHorizontalInRender, getStrafeUpDown, getSwimDepth, getTargetPosition, getThermalPower, handleMovement, isFlying, isHovering, positionRider, removePassenger, serializeNBT, setCanFly, setFlyHeight, setFlying, setHoverRotationPitch, setMovementTarget, setMoveMultiplier, setPixelmonToFlyForBattle, setStrafeUpDown, setSwimDepth, setThermalPower, shouldRenderAtSqrDistance, takeOff, toggleHover
getAttacksAtLevel, getGroupId, getParticipant, getPartyPosition, getPixelmonWrapper, getTrainer, inGroup, isValidTarget, learnsAttackAtLevel, onEndBattle, setGroupId, setHealth, setPixelmonWrapper, startBattle, startBattle, startBattle
addBehaviourGoals, canFly, canSurf, createNavigation, getAggressionTimer, getAIHelper, getControllingPassenger, getJumpTicks, getNumInteractions, getPassengersRidingOffset, getRidingPlayerVertical, getUsingRidingSpecialConditions, mobInteract, onSendout, registerGoals, resetAI, setAggressionTimer, setAttackTarget, setBlockTarget, setJumpTicks, setNumInteractions, setRidingPlayerVertical, setTarget, updateEntityActionStateAlt
canBreatheUnderwater, evolve, getDefaultSpawnLocation, getFlyingParameters, getForm, getFormIncludeTransformed, getLvl, getNumForms, getPokerus, getSwimmingParameters, setBossTier, setForm, setForm, updateHealth, updateStats
addDynamaxScale, cancelTransform, checkAnimation, getAmbientSound, getAnimationVariables, getCurrentAnimation, getDynamaxScale, getEvoStage, getEyeHeight, getFlyingDelayCounter, getModel, getModelSlot, getPokemon, getRealTexture, getRenderColor, getScaleFactor, getSoundVolume, getSprite, getTextureNoCheck, getTransformed, initAnimation, initBaseEntity, isAnimated, isEvolving, isSpriteModel, isWireFrame, jumpInLiquid, resetDataWatchers, setAnimated, setAnimation, setDynamaxScale, setEvolutionAnimationStage, setEvoStage, setModelSlot, setOverrideTexture, setPos, setRenderColor, setSpriteModel, setWireFrame, transform, transformServer, updateSize, updateTransformed
belongsTo, canBeLeashed, canRide, changeDimension, define, fireImmune, getAge, getAggression, getAngrySound, getBossTier, getBreedOffspring, getColor, getDeathSound, getDimensions, getEatingSound, getEscapedNickname, getGenderProperties, getHurtSound, getLocalizedName, getMainHandItem, getName, getNickname, 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, update
calculateFallDamage, 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, randomizeAttributes, setBred, setEating, setFlag, setIsJumping, setOffspringAttributes, setSlot, setStanding, setTamed, setTemper, spawnTamingParticles, tameWithName, travel, updateContainerEquipment
canFallInLove, checkAnimalSpawnRules, customServerAiStep, getExperienceReward, getInLoveTime, getLoveCause, getMyRidingOffset, getWalkTargetValue, isInLove, resetLove, setInLove, setInLoveTime, spawnChildFromBreeding, usePlayerItem
ageBoundaryReached, ageUp, ageUp, canBreed, isBaby, setAge, setBaby
followLeashSpeed, getWalkTargetValue, isPathFinding
ate, canAttack, canAttackType, canCutCorner, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, 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, wantsToPickUp
actuallyHurt, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, brainProvider, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, canAttack, canBeAffected, canSee, canSpawnSoulSpeedParticle, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, 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, getHealth, getItemInHand, 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, updateSwingTime
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, 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, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rotate, 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, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, teleportTo, teleportToWithTicket, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public int legendaryTicks
public int despawnCounter
public static int TICKSPERSECOND
public static int intMinTicksToDespawn
public static int intMaxTicksToDespawn
public boolean grounded
public static java.util.ArrayList<IInteraction> interactionList
public boolean canMove
public boolean stopRender
public PixelmonSpawnerTileEntity spawner
public java.util.ArrayList<java.util.UUID> cameraCapturedPlayers
public PixelmonEntity(net.minecraft.entity.EntityType<PixelmonEntity> type, net.minecraft.world.World world)
public PixelmonEntity(net.minecraft.world.World world, Pokemon pokemon)
world
- The world the Pokémon is in.public PixelmonEntity(net.minecraft.world.World world, net.minecraft.nbt.CompoundNBT nbt)
public int getMovementTick()
public net.minecraft.entity.EntityClassification getSpawnReplaceClassification()
public void setSpawnReplaceClassification(net.minecraft.entity.EntityClassification type)
public net.minecraft.util.math.vector.Vector3d getFluidFallingAdjustedMovement(double p_233626_1_, boolean p_233626_3_, net.minecraft.util.math.vector.Vector3d p_233626_4_)
getFluidFallingAdjustedMovement
in class net.minecraft.entity.LivingEntity
public boolean canChangeDimensions()
canChangeDimensions
in class net.minecraft.entity.Entity
public void onPlayerJump(int power)
onPlayerJump
in interface net.minecraft.entity.IJumpingMount
onPlayerJump
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
public net.minecraft.entity.EntityClassification getClassification(boolean forSpawnCount)
@Nonnull public net.minecraft.util.ResourceLocation getTexture()
AbstractClientEntity
getTexture
in interface TexturedEntity
getTexture
in class AbstractClientEntity
public void baseTick()
AbstractInteractionsEntity
baseTick
in class AbstractMovesEntity
public void onLanding()
onLanding
in class AbstractMovesEntity
public boolean canBeRiddenInWater(net.minecraft.entity.Entity rider)
public void die(net.minecraft.util.DamageSource cause)
die
in class AbstractHoldsItemsEntity
public net.minecraft.util.ActionResultType checkAndHandleImportantInteractions(net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand)
checkAndHandleImportantInteractions
in class net.minecraft.entity.MobEntity
public void retrieve(java.lang.String pokemonRetrievedEventReason)
public void releaseFromPokeball()
public void clearAttackTarget()
public void setPriorForm(Stats form)
public boolean checkSpawnRules(net.minecraft.world.IWorld p_213380_1_, net.minecraft.entity.SpawnReason p_213380_2_)
checkSpawnRules
in class net.minecraft.entity.CreatureEntity
public void tickLeash()
tickLeash
in class net.minecraft.entity.CreatureEntity
public boolean removeWhenFarAway(double p_213397_1_)
removeWhenFarAway
in class AbstractBattleEntity
public net.minecraft.entity.LivingEntity getOwner()
getOwner
in class AbstractBaseEntity
public void tick()
tick
in class AbstractInteractionsEntity
public void updateDespawn()
public void removeAfterChangingDimensions()
removeAfterChangingDimensions
in class AbstractInteractionsEntity
public boolean hurt(net.minecraft.util.DamageSource source, float amount)
hurt
in class AbstractBattleEntity
public boolean save(net.minecraft.nbt.CompoundNBT p_70039_1_)
save
in class net.minecraft.entity.Entity
public void addAdditionalSaveData(net.minecraft.nbt.CompoundNBT nbt)
addAdditionalSaveData
in class AbstractInteractionsEntity
public void readAdditionalSaveData(net.minecraft.nbt.CompoundNBT nbt)
readAdditionalSaveData
in class AbstractInteractionsEntity
public void unloadEntity()
AbstractInteractionsEntity
unloadEntity
in class AbstractInteractionsEntity
public void startEvolution(Evolution evolution, java.lang.String cause)
evolution
- public boolean isLoaded()
public boolean isLoaded(boolean checkChunk)
public boolean isRaidPokemon()
public boolean testTradeEvolution(Species with)
public boolean testLevelEvolution(int level)
level
- The current level of the Pokémon.public boolean testInteractEvolution(net.minecraft.item.ItemStack stack)
public boolean testTickingEvolution()
public void setSpawnerParent(PixelmonSpawnerTileEntity spawner)
spawner
- The Pixelmon spawner that spawned the Pokémon.public boolean shouldRender(double p_145770_1_, double p_145770_3_, double p_145770_5_)
shouldRender
in class AbstractMovesEntity
public double getYCentre()
public void setClientOnlyInfo(LensInfoPacket info)
public LensInfoPacket getClientOnlyInfo()
public boolean isUncatchable()
Pokemon.isUncatchable()
public boolean isUnbattleable()
Pokemon.isUncatchable()
public void exposeInfo(net.minecraft.entity.player.ServerPlayerEntity player)
public void hideInfo(net.minecraft.entity.player.ServerPlayerEntity player)
public static boolean displacePokemonIfShouldered(net.minecraft.entity.player.ServerPlayerEntity player, java.util.UUID uuid)
public boolean canStandOnFluid(net.minecraft.fluid.Fluid fluid)
canStandOnFluid
in class net.minecraft.entity.LivingEntity
fluid
- The fluid the entity is in.public int getFlyingCharges()
public void setFlyingCharges(java.lang.Integer flyingCharges)
public float getFlyPower()
public void setFlyPower(float flyPower)
public void setLastJump(int lastJump)
public int getLastJump()
public int getHoverTicks()
public void setHoverTicks(int hoverTicks)
public void aiStep()
aiStep
in class net.minecraft.entity.passive.horse.AbstractHorseEntity
protected void updateControlFlags()
updateControlFlags
in class net.minecraft.entity.MobEntity