Package net.minecraft.entity.passive
Class TropicalFishEntity
- All Implemented Interfaces:
ComponentsAccess
,Attackable
,Bucketable
,DataTracked
,EquipmentHolder
,Leashable
,Targeter
,ScoreHolder
,Nameable
,EntityLike
,UniquelyIdentifiable
- Mappings:
Namespace Name named net/minecraft/entity/passive/TropicalFishEntity
intermediary net/minecraft/class_1474
official clb
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
private static class
static final record
Nested classes/interfaces inherited from class net.minecraft.entity.passive.SchoolingFishEntity
SchoolingFishEntity.FishData
Nested classes/interfaces inherited from class net.minecraft.entity.LivingEntity
LivingEntity.FallSounds
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
Nested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.LeashData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List
<TropicalFishEntity.Variant> private boolean
static final TropicalFishEntity.Variant
private static final TrackedData
<Integer> Fields inherited from class net.minecraft.entity.mob.WaterCreatureEntity
MIN_AMBIENT_SOUND_DELAY
Fields inherited from class net.minecraft.entity.mob.PathAwareEntity
DEFAULT_PATHFINDING_FAVOR
Fields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, BASE_ENCHANTED_ARMOR_CHANCE, BASE_ENCHANTED_MAIN_HAND_EQUIPMENT_CHANCE, BASE_SPAWN_EQUIPMENT_CHANCE, DEFAULT_CAN_PICKUP_LOOT_CHANCE, experiencePoints, field_35039, goalSelector, jumpControl, lookControl, MINIMUM_DROPPED_EXPERIENCE_PER_EQUIPMENT, moveControl, navigation, RANDOM_SPAWN_BONUS_MODIFIER_ID, targetSelector
Fields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, ATTRIBUTES_NBT_KEY, BABY_SCALE_FACTOR, bodyYaw, brain, dead, DEATH_TICKS, deathTime, defaultMaxHealth, despawnCounter, elytraFlightController, equipment, EQUIPMENT_SLOT_ID, field_30072, field_30074, field_30075, field_44874, field_47756, field_48827, field_55952, field_56256, forwardSpeed, glidingTicks, GLOWING_FLAG, GRAVITY, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, interpolator, itemUseTimeLeft, jumping, lastAttackedTicks, lastBodyYaw, lastDamageTaken, lastHandSwingProgress, lastHeadYaw, limbAnimator, LIVING_FLAGS, maxHurtTime, NOT_WEARING_GAZE_DISGUISE_PREDICATE, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, riptideAttackDamage, riptideStack, riptideTicks, serverHeadYaw, sidewaysSpeed, SLEEPING_DIMENSIONS, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAG
Fields inherited from class net.minecraft.entity.Entity
age, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow
Fields inherited from interface net.minecraft.entity.Leashable
LEASH_NBT_KEY, MAX_LEASH_LENGTH, SHORT_LEASH_LENGTH
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionTropicalFishEntity
(EntityType<? extends TropicalFishEntity> type, World world) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canTropicalFishSpawn
(EntityType<TropicalFishEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random) protected void
void
copyDataToStack
(ItemStack stack) <T> T
get
(ComponentType<? extends T> type) protected SoundEvent
static DyeColor
getBaseColor
(int variant) protected SoundEvent
protected SoundEvent
protected SoundEvent
getHurtSound
(DamageSource source) static DyeColor
getPatternColor
(int variant) static String
getToolTipForVariant
(int variant) private int
(package private) static int
getVariantId
(TropicalFishEntity.Pattern variety, DyeColor baseColor, DyeColor patternColor) static TropicalFishEntity.Pattern
getVariety
(int variant) protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.initialize
(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData) void
Reads custom data fromnbt
.protected <T> boolean
setApplicableComponent
(ComponentType<T> type, T value) private void
setBaseColor
(DyeColor baseColor) private void
setPatternColor
(DyeColor patternColor) private void
setTropicalFishVariant
(int variant) private void
setVariety
(TropicalFishEntity.Pattern variety) boolean
spawnsTooManyForEachTry
(int count) void
Writes custom data tonbt
.Methods inherited from class net.minecraft.entity.passive.SchoolingFishEntity
canHaveMoreFishInGroup, getLimitPerChunk, getMaxGroupSize, hasLeader, hasOtherFishInGroup, hasSelfControl, initGoals, isCloseEnoughToLeader, joinGroupOf, leaveGroup, moveTowardLeader, pullInOtherFish, tick
Methods inherited from class net.minecraft.entity.passive.FishEntity
canImmediatelyDespawn, cannotDespawn, copyDataFromNbt, createFishAttributes, createNavigation, getBucketFillSound, getSwimSound, interactMob, isFromBucket, playStepSound, setFromBucket, tickMovement, travel
Methods inherited from class net.minecraft.entity.mob.WaterCreatureEntity
baseTick, canBeLeashed, canSpawn, canSpawn, getExperienceToDrop, getMinAmbientSoundDelay, isPushedByFluids, tickWaterBreathingAir
Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
beforeLeashTick, canSpawn, getFollowLeashSpeed, getPathfindingFavor, getPathfindingFavor, isNavigating, isPanicking, onShortLeashTick, shouldFollowLeash
Methods inherited from class net.minecraft.entity.mob.MobEntity
breakLongLeash, canActVoluntarily, canDispenserEquipSlot, canGather, canMobSpawn, canMoveVoluntarily, canPickupItem, canPickUpLoot, canTarget, canUseRangedWeapon, checkDespawn, clampHeadYaw, clearGoals, clearGoalsAndTasks, clearPositionTarget, convertTo, convertTo, createBodyControl, createEquipmentInventory, createMobAttributes, dropAllForeignEquipment, dropEquipment, dropForeignEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipBodyArmor, equipLootStack, getAttackBox, getBodyArmor, getControllingPassenger, getEquipmentDropChances, getEquipmentForSlot, getItemPickUpRangeExpander, getJumpControl, getLeashData, getLookControl, getLootTableKey, getLootTableSeed, getMainArm, getMaxHeadRotation, getMaxLookPitchChange, getMaxLookYawChange, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getPreferredWeapons, getSafeFallDistance, getTarget, getTargetInBrain, getVisibilityCache, handleStatus, hasPositionTarget, hasSaddleEquipped, initEquipment, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isInAttackRange, isInWalkTargetRange, isInWalkTargetRange, isLeftHanded, isPersistent, isWearingBodyArmor, lookAtEntity, loot, mobTick, movesIndependently, onEatingGrass, onFinishPathfinding, onLeashRemoved, onPlayerSpawnedChild, onStartPathfinding, playAmbientSound, playAttackSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, sendAiDebugData, setAiDisabled, setAttacking, setBaby, setCanPickUpLoot, setDropGuaranteed, setEquipmentDropChance, setEquipmentFromTable, setEquipmentFromTable, setForwardSpeed, setLeashData, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, startRiding, stopMovement, swimUpward, tickNewAi, tryAttack, tryEquip, turnHead, updateAttribute, updateEnchantments, updateGoalControls
Methods inherited from class net.minecraft.entity.LivingEntity
addDeathParticles, addPowderSnowSlowIfNeeded, addStatusEffect, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyFluidMovingSpeed, applyMovementEffects, areItemsDifferent, attackLivingEntity, becomeAngry, canBreatheInWater, canEquip, canEquipFromDispenser, canFreeze, canGlide, canGlideWith, canHaveStatusEffect, canHit, canSee, canSee, canTakeDamage, canTarget, canUsePortals, canUseSlot, canWalkOnFluid, clampScale, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createEquipment, createLivingAttributes, damage, damageArmor, damageEquipment, damageHelmet, deserializeBrain, disableExperienceDropping, drop, dropExperience, dropInventory, dropItem, endCombat, enterCombat, equipStack, fall, forEachGeneratedItem, forEachGiftedItem, forEachShearedItem, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttackingPlayer, getAttackKnockbackAgainst, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseDimensions, getBaseWaterMovementSpeedMultiplier, getBlockingItem, getBodyYaw, getBoundingBox, getBrain, getClimbingPos, getControlledMovementInput, getDamageBlockedAmount, getDamageTiltYaw, getDamageTracker, getDespawnCounter, getDimensions, getEffectFadeFactor, getEffectiveGravity, getEquippedStack, getEquipSound, getExperienceToDrop, getFallSounds, getGlidingTicks, getGravity, getHandSwingProgress, getHeadYaw, getHealth, getHitbox, getInterpolator, getItemUseTime, getItemUseTimeLeft, getJumpBoostVelocityModifier, getJumpVelocity, getJumpVelocity, getLastAttackedTime, getLastAttacker, getLastAttackTime, getLeaningPitch, getLocationBasedEnchantmentEffects, getLuck, getMainHandStack, getMaxAbsorption, getMaxHealth, getMaxRelativeHeadRotation, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffGroundSpeed, getOffHandStack, getPassengerRidingPos, getPlayerHitTimer, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getProjectileType, getRecentDamageSource, getSaddledSpeed, getSafeFallDistance, getScale, getScaleFactor, getSleepingDirection, getSleepingPosition, getSlotForHand, getSoundPitch, getSoundVolume, getStackInArm, getStackInHand, getStackReference, getStatusEffect, getStatusEffects, getStepHeight, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getWeaponDisableBlockingForSeconds, getWeaponStack, getYaw, giveOrDropStack, handleFallDamage, hasInvertedHealingAndHarm, hasLandedInFluid, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isArmorSlot, isBaby, isBlocking, isClimbing, isDead, isEntityLookingAtMe, isExperienceDroppingDisabled, isGliding, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInCreativeMode, isInsideWall, isInSwimmingPose, isInvulnerableTo, isMobOrPlayer, isPartOfGame, isPushable, isSleeping, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lerpHeadYaw, lerpYaw, lookAt, markEffectsDirty, modifyAppliedDamage, onAttacking, onDamaged, onDeath, onEquipStack, onKilledBy, onRemoval, onSpawnPacket, onStatusEffectApplied, onStatusEffectsRemoved, onStatusEffectUpgraded, onTrackedDataSet, playBlockFallSound, playSound, positionInPortal, positionInPortal, pushAway, pushAwayFrom, remove, removePowderSnowSlow, removeStatusEffect, removeStatusEffectInternal, sendEffectToControllingPlayer, sendEquipmentBreakStatus, sendPickup, setAbsorptionAmount, setAbsorptionAmountUnclamped, setAttacker, setAttacking, setAttacking, setAttackingPlayer, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnFireForTicks, setSleepingPosition, setSprinting, setStackInHand, setStatusEffect, setStingerCount, setStuckArrowCount, shouldAlwaysDropExperience, shouldDropExperience, shouldDropLoot, shouldRenderName, shouldSwimInFluids, sleep, spawnItemParticles, stopGliding, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickControlled, tickCramming, tickGliding, tickHandSwing, tickInVoid, tickItemStackUsage, tickMovementInput, tickRiding, tickRiptide, tickStatusEffects, tiltScreen, triggerItemPickedUpByEntityCriteria, updateLimbs, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, wakeUp, wouldNotSuffocateInPose
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canSprintAsVehicle, canStartRiding, canTeleportBetween, castComponentValue, changeLookDirection, clientDamage, collidesWith, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyZ, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getZ, handleAttack, handleFall, handleFallDamageForPassengers, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasVehicle, igniteByLava, interactAt, isAlwaysInvulnerableTo, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInSneakingPose, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, lerpPosAndRotation, limitFallDistance, move, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveNbt, saveSelfNbt, scheduleVelocityUpdate, serverDamage, setAir, setAngles, setBoundingBox, setChangeListener, setComponent, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setId, setInPowderSnow, setInvisible, setInvulnerable, setLastPositionAndAngles, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickBlockCollision, tickBlockCollision, tickPortalCooldown, tickPortalTeleportation, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeNbt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTyped
Methods inherited from interface net.minecraft.entity.EquipmentHolder
equipStack, getEquippedStack, getSlotForStack, setEquipmentFromTable, setEquipmentFromTable, setEquipmentFromTable
Methods inherited from interface net.minecraft.entity.Leashable
applyLeashElasticity, attachLeash, canLeashAttachTo, detachLeash, detachLeashWithoutDrop, getLeashHolder, isLeashed, mightBeLeashed, readLeashDataFromNbt, setUnresolvedLeashHolderId, writeLeashDataToNbt
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
DEFAULT_VARIANT
- Mappings:
Namespace Name Mixin selector named DEFAULT_VARIANT
Lnet/minecraft/entity/passive/TropicalFishEntity;DEFAULT_VARIANT:Lnet/minecraft/entity/passive/TropicalFishEntity$Variant;
intermediary field_55968
Lnet/minecraft/class_1474;field_55968:Lnet/minecraft/class_1474$class_7992;
official a
Lclb;a:Lclb$d;
-
VARIANT
- Mappings:
Namespace Name Mixin selector named VARIANT
Lnet/minecraft/entity/passive/TropicalFishEntity;VARIANT:Lnet/minecraft/entity/data/TrackedData;
intermediary field_6874
Lnet/minecraft/class_1474;field_6874:Lnet/minecraft/class_2940;
official c
Lclb;c:Laku;
-
COMMON_VARIANTS
- Mappings:
Namespace Name Mixin selector named COMMON_VARIANTS
Lnet/minecraft/entity/passive/TropicalFishEntity;COMMON_VARIANTS:Ljava/util/List;
intermediary field_41573
Lnet/minecraft/class_1474;field_41573:Ljava/util/List;
official b
Lclb;b:Ljava/util/List;
-
commonSpawn
private boolean commonSpawn- Mappings:
Namespace Name Mixin selector named commonSpawn
Lnet/minecraft/entity/passive/TropicalFishEntity;commonSpawn:Z
intermediary field_6877
Lnet/minecraft/class_1474;field_6877:Z
official e
Lclb;e:Z
-
-
Constructor Details
-
TropicalFishEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <init>
Lbxe;<init>(Lbxn;Ldkj;)V
-
-
Method Details
-
getToolTipForVariant
- Mappings:
Namespace Name Mixin selector named getToolTipForVariant
Lnet/minecraft/entity/passive/TropicalFishEntity;getToolTipForVariant(I)Ljava/lang/String;
intermediary method_6649
Lnet/minecraft/class_1474;method_6649(I)Ljava/lang/String;
official b
Lclb;b(I)Ljava/lang/String;
-
getVariantId
static int getVariantId(TropicalFishEntity.Pattern variety, DyeColor baseColor, DyeColor patternColor) - Mappings:
Namespace Name Mixin selector named getVariantId
Lnet/minecraft/entity/passive/TropicalFishEntity;getVariantId(Lnet/minecraft/entity/passive/TropicalFishEntity$Pattern;Lnet/minecraft/util/DyeColor;Lnet/minecraft/util/DyeColor;)I
intermediary method_47861
Lnet/minecraft/class_1474;method_47861(Lnet/minecraft/class_1474$class_1475;Lnet/minecraft/class_1767;Lnet/minecraft/class_1767;)I
official a
Lclb;a(Lclb$b;Lczi;Lczi;)I
-
getBaseColor
- Mappings:
Namespace Name Mixin selector named getBaseColor
Lnet/minecraft/entity/passive/TropicalFishEntity;getBaseColor(I)Lnet/minecraft/util/DyeColor;
intermediary method_6652
Lnet/minecraft/class_1474;method_6652(I)Lnet/minecraft/class_1767;
official c
Lclb;c(I)Lczi;
-
getPatternColor
- Mappings:
Namespace Name Mixin selector named getPatternColor
Lnet/minecraft/entity/passive/TropicalFishEntity;getPatternColor(I)Lnet/minecraft/util/DyeColor;
intermediary method_6651
Lnet/minecraft/class_1474;method_6651(I)Lnet/minecraft/class_1767;
official r
Lclb;r(I)Lczi;
-
getVariety
- Mappings:
Namespace Name Mixin selector named getVariety
Lnet/minecraft/entity/passive/TropicalFishEntity;getVariety(I)Lnet/minecraft/entity/passive/TropicalFishEntity$Pattern;
intermediary method_47864
Lnet/minecraft/class_1474;method_47864(I)Lnet/minecraft/class_1474$class_1475;
official s
Lclb;s(I)Lclb$b;
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in classFishEntity
- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbxe;a(Laky$a;)V
-
writeCustomDataToNbt
Writes custom data tonbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Overrides:
writeCustomDataToNbt
in classFishEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbt
Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
official b
Lbxe;b(Lua;)V
-
readCustomDataFromNbt
Reads custom data fromnbt
. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbt
might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readCustomDataFromNbt
in classFishEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbt
Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
official a
Lbxe;a(Lua;)V
-
setTropicalFishVariant
private void setTropicalFishVariant(int variant) - Mappings:
Namespace Name Mixin selector named setTropicalFishVariant
Lnet/minecraft/entity/passive/TropicalFishEntity;setTropicalFishVariant(I)V
intermediary method_47865
Lnet/minecraft/class_1474;method_47865(I)V
official t
Lclb;t(I)V
-
spawnsTooManyForEachTry
public boolean spawnsTooManyForEachTry(int count) - Overrides:
spawnsTooManyForEachTry
in classMobEntity
- Mappings:
Namespace Name Mixin selector named spawnsTooManyForEachTry
Lnet/minecraft/entity/mob/MobEntity;spawnsTooManyForEachTry(I)Z
intermediary method_5969
Lnet/minecraft/class_1308;method_5969(I)Z
official q
Lbyh;q(I)Z
-
getTropicalFishVariant
private int getTropicalFishVariant()- Mappings:
Namespace Name Mixin selector named getTropicalFishVariant
Lnet/minecraft/entity/passive/TropicalFishEntity;getTropicalFishVariant()I
intermediary method_47863
Lnet/minecraft/class_1474;method_47863()I
official gG
Lclb;gG()I
-
getBaseColor
- Mappings:
Namespace Name Mixin selector named getBaseColor
Lnet/minecraft/entity/passive/TropicalFishEntity;getBaseColor()Lnet/minecraft/util/DyeColor;
intermediary method_6658
Lnet/minecraft/class_1474;method_6658()Lnet/minecraft/class_1767;
official gD
Lclb;gD()Lczi;
-
getPatternColor
- Mappings:
Namespace Name Mixin selector named getPatternColor
Lnet/minecraft/entity/passive/TropicalFishEntity;getPatternColor()Lnet/minecraft/util/DyeColor;
intermediary method_6655
Lnet/minecraft/class_1474;method_6655()Lnet/minecraft/class_1767;
official gE
Lclb;gE()Lczi;
-
getVariety
- Mappings:
Namespace Name Mixin selector named getVariety
Lnet/minecraft/entity/passive/TropicalFishEntity;getVariety()Lnet/minecraft/entity/passive/TropicalFishEntity$Pattern;
intermediary method_66681
Lnet/minecraft/class_1474;method_66681()Lnet/minecraft/class_1474$class_1475;
official gF
Lclb;gF()Lclb$b;
-
setVariety
- Mappings:
Namespace Name Mixin selector named setVariety
Lnet/minecraft/entity/passive/TropicalFishEntity;setVariety(Lnet/minecraft/entity/passive/TropicalFishEntity$Pattern;)V
intermediary method_47860
Lnet/minecraft/class_1474;method_47860(Lnet/minecraft/class_1474$class_1475;)V
official a
Lclb;a(Lclb$b;)V
-
setBaseColor
- Mappings:
Namespace Name Mixin selector named setBaseColor
Lnet/minecraft/entity/passive/TropicalFishEntity;setBaseColor(Lnet/minecraft/util/DyeColor;)V
intermediary method_66679
Lnet/minecraft/class_1474;method_66679(Lnet/minecraft/class_1767;)V
official a
Lclb;a(Lczi;)V
-
setPatternColor
- Mappings:
Namespace Name Mixin selector named setPatternColor
Lnet/minecraft/entity/passive/TropicalFishEntity;setPatternColor(Lnet/minecraft/util/DyeColor;)V
intermediary method_66680
Lnet/minecraft/class_1474;method_66680(Lnet/minecraft/class_1767;)V
official b
Lclb;b(Lczi;)V
-
get
- Specified by:
get
in interfaceComponentsAccess
- Overrides:
get
in classEntity
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/component/ComponentsAccess;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;
intermediary method_58694
Lnet/minecraft/class_9473;method_58694(Lnet/minecraft/class_9331;)Ljava/lang/Object;
official a
Lkg;a(Lkk;)Ljava/lang/Object;
-
copyComponentsFrom
- Overrides:
copyComponentsFrom
in classEntity
- Mappings:
Namespace Name Mixin selector named copyComponentsFrom
Lnet/minecraft/entity/Entity;copyComponentsFrom(Lnet/minecraft/component/ComponentsAccess;)V
intermediary method_66649
Lnet/minecraft/class_1297;method_66649(Lnet/minecraft/class_9473;)V
official a
Lbxe;a(Lkg;)V
-
setApplicableComponent
- Overrides:
setApplicableComponent
in classEntity
- Mappings:
Namespace Name Mixin selector named setApplicableComponent
Lnet/minecraft/entity/Entity;setApplicableComponent(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Z
intermediary method_66654
Lnet/minecraft/class_1297;method_66654(Lnet/minecraft/class_9331;Ljava/lang/Object;)Z
official b
Lbxe;b(Lkk;Ljava/lang/Object;)Z
-
copyDataToStack
- Specified by:
copyDataToStack
in interfaceBucketable
- Overrides:
copyDataToStack
in classFishEntity
- Mappings:
Namespace Name Mixin selector named copyDataToStack
Lnet/minecraft/entity/Bucketable;copyDataToStack(Lnet/minecraft/item/ItemStack;)V
intermediary method_6455
Lnet/minecraft/class_5761;method_6455(Lnet/minecraft/class_1799;)V
official a_
Lcjx;a_(Ldak;)V
-
getBucketItem
- Mappings:
Namespace Name Mixin selector named getBucketItem
Lnet/minecraft/entity/Bucketable;getBucketItem()Lnet/minecraft/item/ItemStack;
intermediary method_6452
Lnet/minecraft/class_5761;method_6452()Lnet/minecraft/class_1799;
official a
Lcjx;a()Ldak;
-
getAmbientSound
- Overrides:
getAmbientSound
in classMobEntity
- Mappings:
Namespace Name Mixin selector named getAmbientSound
Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_5994
Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
official s
Lbyh;s()Lawx;
-
getDeathSound
- Overrides:
getDeathSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getDeathSound
Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_6002
Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
official j_
Lbyf;j_()Lawx;
-
getHurtSound
- Overrides:
getHurtSound
in classLivingEntity
- Mappings:
Namespace Name Mixin selector named getHurtSound
Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
intermediary method_6011
Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
official e
Lbyf;e(Lbvt;)Lawx;
-
getFlopSound
- Specified by:
getFlopSound
in classFishEntity
- Mappings:
Namespace Name Mixin selector named getFlopSound
Lnet/minecraft/entity/passive/FishEntity;getFlopSound()Lnet/minecraft/sound/SoundEvent;
intermediary method_6457
Lnet/minecraft/class_1422;method_6457()Lnet/minecraft/class_3414;
official gv
Lcjr;gv()Lawx;
-
initialize
@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData) - Overrides:
initialize
in classSchoolingFishEntity
- Mappings:
Namespace Name Mixin selector named initialize
Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;
intermediary method_5943
Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;
official a
Lbyh;a(Ldla;Lbva;Lbxm;Lbyx;)Lbyx;
-
canTropicalFishSpawn
public static boolean canTropicalFishSpawn(EntityType<TropicalFishEntity> type, WorldAccess world, SpawnReason reason, BlockPos pos, Random random) - Mappings:
Namespace Name Mixin selector named canTropicalFishSpawn
Lnet/minecraft/entity/passive/TropicalFishEntity;canTropicalFishSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
intermediary method_38985
Lnet/minecraft/class_1474;method_38985(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
official b
Lclb;b(Lbxn;Ldkk;Lbxm;Liw;Lbai;)Z
-