Package net.minecraft.entity.passive
Class SchoolingFishEntity
- All Implemented Interfaces:
Bucketable
,EntityLike
,CommandOutput
,Nameable
- Direct Known Subclasses:
CodEntity
,SalmonEntity
,TropicalFishEntity
public abstract class SchoolingFishEntity extends FishEntity
- Mappings:
Namespace Name official bbi
intermediary net/minecraft/class_1425
named net/minecraft/entity/passive/SchoolingFishEntity
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SchoolingFishEntity.FishData
Nested classes/interfaces inherited from class net.minecraft.entity.passive.FishEntity
FishEntity.FishMoveControl, FishEntity.SwimToRandomPlaceGoal
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.class_5799, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
Fields Modifier and Type Field Description private int
groupSize
private SchoolingFishEntity
leader
Fields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, experiencePoints, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelector
Fields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, bodyTrackingIncrements, bodyYaw, brain, dead, deathTime, defaultMaxHealth, despawnCounter, field_6215, flyingSpeed, forwardSpeed, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, knockbackVelocity, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, lastLimbDistance, limbAngle, limbDistance, LIVING_FLAGS, lookDirection, maxHurtTime, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, roll, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed
Fields inherited from class net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, fallDistance, field_28627, field_28629, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, ridingCooldown, stepHeight, submergedFluidTag, submergedInWater, timeUntilRegen, touchingWater, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, world, yaw
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
-
Constructor Summary
Constructors Constructor Description SchoolingFishEntity(EntityType<? extends SchoolingFishEntity> type, World world)
-
Method Summary
Modifier and Type Method Description boolean
canHaveMoreFishInGroup()
private void
decreaseGroupSize()
int
getLimitPerChunk()
int
getMaxGroupSize()
boolean
hasLeader()
boolean
hasOtherFishInGroup()
protected boolean
hasSelfControl()
private void
increaseGroupSize()
protected void
initGoals()
EntityData
initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, EntityData entityData, CompoundTag entityTag)
boolean
isCloseEnoughToLeader()
SchoolingFishEntity
joinGroupOf(SchoolingFishEntity groupLeader)
void
leaveGroup()
void
moveTowardLeader()
void
pullInOtherFish(Stream<? extends SchoolingFishEntity> fish)
void
tick()
Methods inherited from class net.minecraft.entity.passive.FishEntity
canImmediatelyDespawn, cannotDespawn, canSpawn, copyDataToStack, createFishAttributes, createNavigation, getActiveEyeHeight, getFishBucketItem, getFlopSound, getSwimSound, initDataTracker, interactMob, isFromBucket, playStepSound, readCustomDataFromTag, setFromBucket, tickMovement, travel, writeCustomDataToTag
Methods inherited from class net.minecraft.entity.mob.WaterCreatureEntity
baseTick, canBeLeashedBy, canBreatheInWater, canFly, canSpawn, getCurrentExperience, getGroup, getMinAmbientSoundDelay, tickWaterBreathingAir
Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getPathfindingFavor, getPathfindingFavor, getRunFromLeashSpeed, isNavigating, updateForLeashLength, updateLeash
Methods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, canBeControlledByRider, canEquip, canGather, canMobSpawn, canMoveVoluntarily, canPickupItem, canPickUpLoot, canTarget, canTarget, canUseRangedWeapon, checkDespawn, createBodyControl, createMobAttributes, detachLeash, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipLootStack, equipStack, getAmbientSound, getArmorItems, getBodyYawSpeed, getDropChance, getEquipmentForSlot, getEquippedStack, getHoldingEntity, getItemsHand, getJumpControl, getLookControl, getLookPitchSpeed, getLookYawSpeed, getLootContextBuilder, getLootTable, getLootTableId, getMainArm, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getTarget, getVisibilityCache, handleStatus, hasPositionTarget, initEquipment, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isDisallowedInPeaceful, isInWalkTargetRange, isInWalkTargetRange, isLeashed, isLeftHanded, isLogicalSideForUpdatingMovement, isPersistent, lookAtEntity, loot, method_29243, method_29244, method_33191, mobTick, movesIndependently, onEatingGrass, onPlayerSpawnedChild, playAmbientSound, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, sendAiDebugData, setAiDisabled, setAttacking, setBaby, setCanPickUpLoot, setEquipmentDropChance, setForwardSpeed, setHoldingEntityId, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, swimUpward, tickNewAi, tryAttack, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControls
Methods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addSoulSpeedBoostIfNeeded, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyEnchantmentsToDamage, applyMovementEffects, applyStatusEffect, attackLivingEntity, canBeRiddenInWater, canDropLootAndXp, canFreeze, canHaveStatusEffect, canSee, canTakeDamage, canWalkOnFluid, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, collides, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, createSpawnPacket, damage, damageArmor, damageShield, deserializeBrain, displaySoulSpeedEffects, drop, dropInventory, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getArrowType, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseMovementSpeedMultiplier, getBlockState, getBoundingBox, getBrain, getClimbingPos, getDamageTracker, getDeathSound, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEyeHeight, getFallSound, getHandSwingProgress, getHeadYaw, getHealth, getHurtSound, getItemUseTime, getItemUseTimeLeft, getJumpVelocity, getLastAttackedTime, getLastAttackTime, getLeaningPitch, getMainHandStack, getMaxHealth, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffHandStack, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getRandom, getRecentDamageSource, getRoll, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getSoundVolume, getStackInHand, getStatusEffect, getStatusEffects, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getYaw, handleFallDamage, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isBaby, isBlocking, isClimbing, isDead, isFallFlying, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInsideWall, isInSwimmingPose, isMobOrPlayer, isOnSoulSpeedBlock, isPushable, isSleeping, isTarget, isUndead, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lookAt, markEffectsDirty, method_26317, method_26318, method_29500, method_30633, method_31079, method_32318, method_33579, onAttacking, onDeath, onEquipStack, onKilledBy, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, onTrackedDataSet, playBlockFallSound, pushAway, pushAwayFrom, removePowderSnowSlow, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, scheduleVelocityUpdate, sendEquipmentBreakStatus, sendPickup, sendToolBreakStatus, setAbsorptionAmount, setAttacker, setAttacking, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setOnGround, setRiptideTicks, setSleepingPosition, setSprinting, setStackInHand, setStingerCount, setStuckArrowCount, setYaw, shouldAlwaysDropXp, shouldDisplaySoulSpeedEffects, shouldDropLoot, shouldRenderName, shouldSwimInFluids, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickCramming, tickHandSwing, tickInVoid, tickRiding, tickRiptide, tickStatusEffects, triggerItemPickedUpByEntityCriteria, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp
Methods inherited from class net.minecraft.entity.Entity
addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeSpectated, canExplosionDestroyBlock, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, dealDamage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, fromTag, getAir, getBlockPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWidth, getX, getY, getZ, handleAttack, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interactAt, isAttackable, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isFreezing, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isOnFire, isOnGround, isPartOf, isPlayer, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, method_29241, method_29919, method_30330, method_30951, method_31744, method_32877, method_33332, method_33567, method_33568, method_33569, method_33570, method_33571, method_33573, method_33574, method_33575, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playFlySound, playSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setFrozenTicks, setGlowing, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setPos, setPose, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, streamPassengers, streamPassengersRecursively, teleport, tickNetherPortal, tickNetherPortalCooldown, toListTag, toListTag, toString, toTag, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedPosition, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide
-
Field Details
-
leader
- Mappings:
Namespace Name Mixin selector official b
Lbbi;b:Lbbi;
intermediary field_6734
Lnet/minecraft/class_1425;field_6734:Lnet/minecraft/class_1425;
named leader
Lnet/minecraft/entity/passive/SchoolingFishEntity;leader:Lnet/minecraft/entity/passive/SchoolingFishEntity;
-
groupSize
private int groupSize- Mappings:
Namespace Name Mixin selector official c
Lbbi;c:I
intermediary field_6733
Lnet/minecraft/class_1425;field_6733:I
named groupSize
Lnet/minecraft/entity/passive/SchoolingFishEntity;groupSize:I
-
-
Constructor Details
-
SchoolingFishEntity
- Mappings:
Namespace Name Mixin selector official <init>
Laqv;<init>(Laqz;Lbtv;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
-
Method Details
-
initGoals
protected void initGoals()- Overrides:
initGoals
in classFishEntity
- Mappings:
Namespace Name Mixin selector official u
Larj;u()V
intermediary method_5959
Lnet/minecraft/class_1308;method_5959()V
named initGoals
Lnet/minecraft/entity/mob/MobEntity;initGoals()V
-
getLimitPerChunk
public int getLimitPerChunk()- Overrides:
getLimitPerChunk
in classFishEntity
- Mappings:
Namespace Name Mixin selector official eR
Larj;eR()I
intermediary method_5945
Lnet/minecraft/class_1308;method_5945()I
named getLimitPerChunk
Lnet/minecraft/entity/mob/MobEntity;getLimitPerChunk()I
-
getMaxGroupSize
public int getMaxGroupSize()- Mappings:
Namespace Name Mixin selector official fn
Lbbi;fn()I
intermediary method_6465
Lnet/minecraft/class_1425;method_6465()I
named getMaxGroupSize
Lnet/minecraft/entity/passive/SchoolingFishEntity;getMaxGroupSize()I
-
hasSelfControl
protected boolean hasSelfControl()- Overrides:
hasSelfControl
in classFishEntity
- Mappings:
Namespace Name Mixin selector official fl
Lbbg;fl()Z
intermediary method_6456
Lnet/minecraft/class_1422;method_6456()Z
named hasSelfControl
Lnet/minecraft/entity/passive/FishEntity;hasSelfControl()Z
-
hasLeader
public boolean hasLeader()- Mappings:
Namespace Name Mixin selector official fo
Lbbi;fo()Z
intermediary method_6470
Lnet/minecraft/class_1425;method_6470()Z
named hasLeader
Lnet/minecraft/entity/passive/SchoolingFishEntity;hasLeader()Z
-
joinGroupOf
- Mappings:
Namespace Name Mixin selector official a
Lbbi;a(Lbbi;)Lbbi;
intermediary method_6461
Lnet/minecraft/class_1425;method_6461(Lnet/minecraft/class_1425;)Lnet/minecraft/class_1425;
named joinGroupOf
Lnet/minecraft/entity/passive/SchoolingFishEntity;joinGroupOf(Lnet/minecraft/entity/passive/SchoolingFishEntity;)Lnet/minecraft/entity/passive/SchoolingFishEntity;
-
leaveGroup
public void leaveGroup()- Mappings:
Namespace Name Mixin selector official fp
Lbbi;fp()V
intermediary method_6466
Lnet/minecraft/class_1425;method_6466()V
named leaveGroup
Lnet/minecraft/entity/passive/SchoolingFishEntity;leaveGroup()V
-
increaseGroupSize
private void increaseGroupSize()- Mappings:
Namespace Name Mixin selector official fu
Lbbi;fu()V
intermediary method_6462
Lnet/minecraft/class_1425;method_6462()V
named increaseGroupSize
Lnet/minecraft/entity/passive/SchoolingFishEntity;increaseGroupSize()V
-
decreaseGroupSize
private void decreaseGroupSize()- Mappings:
Namespace Name Mixin selector official fv
Lbbi;fv()V
intermediary method_6459
Lnet/minecraft/class_1425;method_6459()V
named decreaseGroupSize
Lnet/minecraft/entity/passive/SchoolingFishEntity;decreaseGroupSize()V
-
canHaveMoreFishInGroup
public boolean canHaveMoreFishInGroup()- Mappings:
Namespace Name Mixin selector official fq
Lbbi;fq()Z
intermediary method_6469
Lnet/minecraft/class_1425;method_6469()Z
named canHaveMoreFishInGroup
Lnet/minecraft/entity/passive/SchoolingFishEntity;canHaveMoreFishInGroup()Z
-
tick
public void tick() -
hasOtherFishInGroup
public boolean hasOtherFishInGroup()- Mappings:
Namespace Name Mixin selector official fr
Lbbi;fr()Z
intermediary method_6467
Lnet/minecraft/class_1425;method_6467()Z
named hasOtherFishInGroup
Lnet/minecraft/entity/passive/SchoolingFishEntity;hasOtherFishInGroup()Z
-
isCloseEnoughToLeader
public boolean isCloseEnoughToLeader()- Mappings:
Namespace Name Mixin selector official fs
Lbbi;fs()Z
intermediary method_6464
Lnet/minecraft/class_1425;method_6464()Z
named isCloseEnoughToLeader
Lnet/minecraft/entity/passive/SchoolingFishEntity;isCloseEnoughToLeader()Z
-
moveTowardLeader
public void moveTowardLeader()- Mappings:
Namespace Name Mixin selector official ft
Lbbi;ft()V
intermediary method_6463
Lnet/minecraft/class_1425;method_6463()V
named moveTowardLeader
Lnet/minecraft/entity/passive/SchoolingFishEntity;moveTowardLeader()V
-
pullInOtherFish
- Mappings:
Namespace Name Mixin selector official a
Lbbi;a(Ljava/util/stream/Stream;)V
intermediary method_6468
Lnet/minecraft/class_1425;method_6468(Ljava/util/stream/Stream;)V
named pullInOtherFish
Lnet/minecraft/entity/passive/SchoolingFishEntity;pullInOtherFish(Ljava/util/stream/Stream;)V
-
initialize
@Nullable public EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable CompoundTag entityTag)- Overrides:
initialize
in classMobEntity
- Mappings:
Namespace Name Mixin selector official a
Larj;a(Lbuj;Lapo;Larl;Larz;Lmq;)Larz;
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_2487;)Lnet/minecraft/class_1315;
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/nbt/CompoundTag;)Lnet/minecraft/entity/EntityData;
-