Class AbstractClientEntity
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
com.pixelmonmod.pixelmon.entities.pixelmon.AbstractClientEntity
- All Implemented Interfaces:
RenderableEntity,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:
AbstractHasStatsEntity,StatueEntity
A Pokémon's model and animation.
-
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.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanbooleanprotected AnimationTypeThe current animation for this pokemon.protected Map<ModelData,AnimationVariables> intThe amount of ticks remaining for the animation for dynamaxing and undynamaxing.static final intThe duration of the un-dynamax animation in ticks.static final floatHow much we scale down the model during every tick of the dynamax animation.static final intThe duration of the dynamax animation in ticks.static final floatHow much we scale up the model during every tick of the dynamax animation.intintprotected EvolutionStageintfloatstatic final Stringstatic final net.minecraft.resources.ResourceLocationfloatprotected intprotected intprotected net.minecraft.resources.ResourceLocationstatic final intstatic final intprotected AnimationVariablesprotected ShaderParametersprotected booleanstatic final DataSync<AbstractClientEntity,Boolean> static final DataSync<AbstractClientEntity,Boolean> static final DataSync<AbstractClientEntity,EvolutionStage> static final DataSync<AbstractClientEntity,Integer> static final DataSync<AbstractClientEntity,net.minecraft.resources.ResourceLocation> static final DataSync<AbstractClientEntity,Optional<ShaderParameters>> static final DataSync<AbstractClientEntity,Boolean> static final DataSync<AbstractClientEntity,Integer> static final DataSync<AbstractClientEntity,Boolean> The Pokémon this is transformed into.floatprotected booleanFields inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractBaseEntity
aggression, bossTier, canDespawn, dataSyncManager, hitByPokeball, pokemon, scale, spawnLocation, SYNC_BOSS_MODE, SYNC_COLOR, SYNC_FULLBRIGHT, SYNC_MAX_HP, SYNC_NAMETAG_DISABLE, SYNC_OVERLAY, SYNC_OWNER_UUID, SYNC_SCALE, SYNC_SHADOW_DISABLE, SYNC_SPAWN_LOCATION, SYNC_TEXTURE_DISABLEFields inherited from class net.minecraft.world.entity.animal.horse.AbstractHorse
allowStandSliding, BREEDING_CROSS_FACTOR, canGallop, CHEST_SLOT_OFFSET, EQUIPMENT_SLOT_OFFSET, gallopSoundCounter, INV_BASE_COUNT, INV_SLOT_ARMOR, 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, 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, xpRewardFields 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, zzaFields 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, zOldFields inherited from interface net.minecraft.commands.CommandSource
NULL -
Constructor Summary
ConstructorsConstructorDescriptionAbstractClientEntity(net.minecraft.world.entity.EntityType<? extends AbstractClientEntity> type, net.minecraft.world.level.Level par1World) Initializes the Pokémon's models and animations. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) voidDoes Dynamax scale changing.voidbaseTick()voidCancels a transformation.voidHandles all the logic of which animation should be used.protected voidnet.minecraft.sounds.SoundEventgetAnimationVariables(ModelData modelData) Gets the variables used to animate the model.floatgetEyeHeight(net.minecraft.world.entity.Pose pose) getForm()Checks if this entity is transformed and gets the form of the Pokémon this entity appears to be.Checks if this entity is transformed and gets the gender properties of the Pokémon this entity appears to be.getModel()Gets the Pokémon's active model.intintChecks if this entity is transformed and gets the palette of the Pokémon this entity appears to be.float[]floatGets the scale multiplier for the Pokémon's model.protected floatChecks if this entity is transformed and gets the species of the Pokémon this entity appears to be.net.minecraft.resources.ResourceLocationGets the texture of the Pokémon sprite.intGets whether the Pokémon's model is transformed.voidTicks the Pokémon's animation one frame to get it out of a T-pose.voidbooleanbooleanGets the Dynamax scale of the Pokémon.booleanChecks if the Pokémon is evolving.booleanbooleanprotected voidjumpInLiquid(net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> p_180466_1_) voidreadAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) voidvoidrunInfrequentSpecialAnimation(AnimationType animationType, IncrementingVariable variable, ValveStudioModel model) voidsetAnimated(boolean animated) voidsetAnimation(AnimationType animation) voidsetDynamaxed(boolean dynamaxed) Sets the Dynamax scale of the Pokémon.voidvoidsetEvoStage(EvolutionStage evoStage) voidsetModelSlot(int modelSlot) voidsetOffGroundTime(int offGroundTime) voidsetOverrideTexture(net.minecraft.resources.ResourceLocation overrideTexture) voidsetPos(double x, double y, double z) voidsetRenderColor(float... renderColor) voidsetShaderParameters(ShaderParameters shaderParameters) voidsetSpriteModel(boolean spriteModel) voidsetWireFrame(boolean wireFrame) voidtick()voidvoidtransform(Species transformedSpecies, String transformedForm, String transformedPalette, int transformedGender) Transforms the Pokémon's model into another model.voidtransformServer(Species transformedSpecies, String transformedForm, String transformedPalette, Gender transformedGender) Keeps track of a transformed Pokémon server-side.voidvoidUpdates all clients with the transformation of the Pokémon.Methods inherited from class com.pixelmonmod.pixelmon.entities.pixelmon.AbstractBaseEntity
belongsTo, canBeLeashed, canRide, causeFallDamage, changeDimension, define, fireImmune, getAge, getAggression, getAngrySound, getBossTier, getBreedOffspring, getColor, getDeathSound, getDimensions, getEatingSound, getHurtSound, getLocalizedName, getMainHandItem, getName, getNickname, getOwner, getOwnerUUID, getPixelmonScale, getPlayerParty, getPlayerStorage, getPokemonName, getSpawnLocation, getStorage, hasCustomName, hasOwner, hasPalette, hurt, isBossPokemon, isDisableNametag, isDisableShadow, isDisableTexture, isFullbright, isInWall, isLeashed, isLegendary, isOverlay, isOwnedBy, isPalette, isPokemon, isPokemon, isPokemon, isPushable, isSaddleable, isSaddled, isTamed, onSyncedDataUpdated, openCustomInventoryScreen, playGallopSound, playJumpSound, playStepSound, removeWhenFarAway, resetAlterations, setAggression, setBossTier, setColor, setDimensions, setDisableNametag, setDisableShadow, setDisableTexture, setFullbright, setOverlay, setOwnerUUID, setPixelmonScale, setPokemon, setSpawnLocation, setUUID, thunderHit, updateMethods 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, 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, tickRidden, updateContainerEquipmentMethods inherited from class net.minecraft.world.entity.animal.Animal
canFallInLove, checkAnimalSpawnRules, customServerAiStep, finalizeSpawnChildFromBreeding, getExperienceReward, 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, followLeashSpeed, getWalkTargetValue, isPanicking, isPathFinding, shouldStayCloseToLeashHolder, tickLeashMethods inherited from class net.minecraft.world.entity.Mob
ate, canAttackType, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkAndHandleImportantInteractions, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, clearRestriction, convertTo, createBodyControl, createMobAttributes, createNavigation, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, 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, 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, wantsToPickUpMethods 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, wouldNotSuffocateAtTargetPoseMethods 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, 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, 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, waterSwimSoundMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCapsMethods 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.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods 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, shouldUpdateFluidWhileBoatingMethods inherited from interface net.minecraftforge.common.extensions.IForgeLivingEntity
canDrownInFluidType, canSwimInFluidType, moveInFluid, self, sinkInFluidMethods inherited from interface net.minecraft.world.entity.OwnableEntity
levelMethods inherited from interface net.minecraft.world.entity.PlayerRideableJumping
getJumpCooldownMethods inherited from interface com.pixelmonmod.pixelmon.client.render.entity.renderers.smd.RenderableEntity
isDisableTexture, isFullbright, isOverlay, tickAnimationMethods inherited from interface net.minecraft.world.entity.Saddleable
getSaddleSoundEvent
-
Field Details
-
parameterId
public static final int parameterId -
parameterId2
public static final int parameterId2 -
SYNC_TRANSFORMATION
-
SYNC_DYNAMAXED
-
SYNC_OVERRIDE_TEXTURE
public static final DataSync<AbstractClientEntity,net.minecraft.resources.ResourceLocation> SYNC_OVERRIDE_TEXTURE -
SYNC_WIREFRAME
-
SYNC_ANIMATED
-
SYNC_MODEL_SLOT
-
SYNC_SPRITE_MODEL
-
SYNC_EVO_STAGE
-
SYNC_SHADER_PARAMETERS
public static final DataSync<AbstractClientEntity,Optional<ShaderParameters>> SYNC_SHADER_PARAMETERS -
IGNORED_TEXTURE
- See Also:
-
IGNORED_TEXTURE_LOCATION
public static final net.minecraft.resources.ResourceLocation IGNORED_TEXTURE_LOCATION -
transformed
The Pokémon this is transformed into. -
offGroundTime
protected int offGroundTime -
animationType
The current animation for this pokemon. -
particleVariables
-
animationVariables
-
overrideTexture
protected net.minecraft.resources.ResourceLocation overrideTexture -
evoStage
-
shaderParameters
-
dynamaxAnimationTicks
public int dynamaxAnimationTicksThe amount of ticks remaining for the animation for dynamaxing and undynamaxing. -
dynamaxAnimationTicksUp
public static final int dynamaxAnimationTicksUpThe duration of the dynamax animation in ticks.- See Also:
-
dynamaxAnimationTicksUpAmount
public static final float dynamaxAnimationTicksUpAmountHow much we scale up the model during every tick of the dynamax animation.- See Also:
-
dynamaxAnimationTicksDown
public static final int dynamaxAnimationTicksDownThe duration of the un-dynamax animation in ticks.- See Also:
-
dynamaxAnimationTicksDownAmount
public static final float dynamaxAnimationTicksDownAmountHow much we scale down the model during every tick of the dynamax animation.- See Also:
-
wireFrame
protected boolean wireFrame -
animated
protected boolean animated -
spriteModel
protected boolean spriteModel -
modelSlot
protected int modelSlot -
evolvingVal
public int evolvingVal -
evoAnimTicks
public int evoAnimTicks -
fadeCount
public int fadeCount -
heightDiff
public float heightDiff -
widthDiff
public float widthDiff -
lengthDiff
public float lengthDiff -
animationAutomaticUpdate
public boolean animationAutomaticUpdate
-
-
Constructor Details
-
AbstractClientEntity
public AbstractClientEntity(net.minecraft.world.entity.EntityType<? extends AbstractClientEntity> type, net.minecraft.world.level.Level par1World) Initializes the Pokémon's models and animations.- Parameters:
par1World- The world the Pokémon is in.
-
-
Method Details
-
defineSynchedData
protected void defineSynchedData()- Overrides:
defineSynchedDatain classAbstractBaseEntity
-
isWireFrame
public boolean isWireFrame()- Specified by:
isWireFramein interfaceRenderableEntity
-
setWireFrame
public void setWireFrame(boolean wireFrame) -
isAnimated
public boolean isAnimated() -
setAnimated
public void setAnimated(boolean animated) -
setOverrideTexture
public void setOverrideTexture(net.minecraft.resources.ResourceLocation overrideTexture) -
getPokemon
- Overrides:
getPokemonin classAbstractBaseEntity
-
getSprite
public net.minecraft.resources.ResourceLocation getSprite()Gets the texture of the Pokémon sprite.- Returns:
- The file path for the texture of the Pokémon sprite.
-
getModel
Gets the Pokémon's active model. Initializes it if not initialized.- Returns:
- The Pokémon's active model.
-
transform
public void transform(Species transformedSpecies, String transformedForm, String transformedPalette, int transformedGender) Transforms the Pokémon's model into another model.- Parameters:
transformedSpecies- The enum of the model to transform into.transformedForm- The enum of the model to transform into.transformedPalette- The enum of the model to transform into.transformedGender- The enum of the model to transform into.
-
cancelTransform
public void cancelTransform()Cancels a transformation. -
updateTransformed
public void updateTransformed()Updates all clients with the transformation of the Pokémon. -
transformServer
public void transformServer(Species transformedSpecies, String transformedForm, String transformedPalette, Gender transformedGender) Keeps track of a transformed Pokémon server-side.- Parameters:
transformedSpecies- The Pokémon to transform into.transformedForm- The form to change the Pokémon to.transformedPalette- The texture to change the Pokémon to.transformedGender- * The gender to change the Pokémon to.
-
getTransformed
public int getTransformed()Gets whether the Pokémon's model is transformed.- Returns:
- -1 if the Pokémon's model is transformed. 0 if it is not transformed.
-
getScaleFactor
public float getScaleFactor()Gets the scale multiplier for the Pokémon's model.- Returns:
- The scale multiplier for the Pokémon's model.
-
isDynamaxed
public boolean isDynamaxed()Gets the Dynamax scale of the Pokémon.- Returns:
- The Dynamax scale of the Pokémon.
-
setDynamaxed
public void setDynamaxed(boolean dynamaxed) Sets the Dynamax scale of the Pokémon.- Parameters:
dynamaxed- if the pokemon is dynamaxed
-
getAnimationVariables
-
getAnimationVariables
Gets the variables used to animate the model.- Specified by:
getAnimationVariablesin interfaceRenderableEntity- Returns:
- The variables used to animate the model.
-
initAnimation
public void initAnimation()Ticks the Pokémon's animation one frame to get it out of a T-pose. -
jumpInLiquid
protected void jumpInLiquid(net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> p_180466_1_) - Overrides:
jumpInLiquidin classnet.minecraft.world.entity.Mob
-
checkAnimation
public void checkAnimation()Handles all the logic of which animation should be used. -
setAnimation
-
getCurrentAnimation
- Specified by:
getCurrentAnimationin interfaceRenderableEntity
-
baseTick
public void baseTick()- Overrides:
baseTickin classnet.minecraft.world.entity.Mob
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
setEvoStage
-
tickModelAnimation
public void tickModelAnimation() -
getEvoStage
-
isEvolving
public boolean isEvolving()Checks if the Pokémon is evolving.- Returns:
- Whether the Pokémon is evolving.
-
setEvolutionAnimationStage
-
setPos
public void setPos(double x, double y, double z) - Overrides:
setPosin classnet.minecraft.world.entity.Entity
-
getEyeHeight
public float getEyeHeight(net.minecraft.world.entity.Pose pose) - Overrides:
getEyeHeightin classnet.minecraft.world.entity.Entity
-
initBaseEntity
public void initBaseEntity()- Overrides:
initBaseEntityin classAbstractBaseEntity
-
updateSize
public void updateSize() -
getAmbientSound
public net.minecraft.sounds.SoundEvent getAmbientSound()- Overrides:
getAmbientSoundin classnet.minecraft.world.entity.Mob
-
getSoundVolume
protected float getSoundVolume()- Overrides:
getSoundVolumein classnet.minecraft.world.entity.animal.horse.AbstractHorse
-
addAdditionalSaveData
public void addAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) - Overrides:
addAdditionalSaveDatain classAbstractBaseEntity
-
readAdditionalSaveData
public void readAdditionalSaveData(net.minecraft.nbt.CompoundTag nbt) - Overrides:
readAdditionalSaveDatain classAbstractBaseEntity
-
setRenderColor
public void setRenderColor(float... renderColor) -
getRenderColor
public float[] getRenderColor() -
getModelSlot
public int getModelSlot() -
setModelSlot
public void setModelSlot(int modelSlot) -
isSpriteModel
public boolean isSpriteModel() -
setSpriteModel
public void setSpriteModel(boolean spriteModel) -
getShaderParameters
-
setShaderParameters
-
resetDataWatchers
public void resetDataWatchers()- Overrides:
resetDataWatchersin classAbstractBaseEntity
-
getOffGroundTime
public int getOffGroundTime() -
setOffGroundTime
public void setOffGroundTime(int offGroundTime) -
animateDynamax
public void animateDynamax()Does Dynamax scale changing. -
runInfrequentSpecialAnimation
public void runInfrequentSpecialAnimation(AnimationType animationType, IncrementingVariable variable, ValveStudioModel model) -
getPalette
Checks if this entity is transformed and gets the palette of the Pokémon this entity appears to be.- Overrides:
getPalettein classAbstractBaseEntity- Returns:
- The palette
PalettePropertiesof the entity
-
getGenderProperties
Checks if this entity is transformed and gets the gender properties of the Pokémon this entity appears to be.- Overrides:
getGenderPropertiesin classAbstractBaseEntity- Returns:
- The gender properties
GenderPropertiesof the entity
-
getForm
Checks if this entity is transformed and gets the form of the Pokémon this entity appears to be.- Overrides:
getFormin classAbstractBaseEntity- Returns:
- The form
Statsof the entity
-
getSpecies
Checks if this entity is transformed and gets the species of the Pokémon this entity appears to be.- Overrides:
getSpeciesin classAbstractBaseEntity- Returns:
- The species
Speciesof the Pokémon.
-