Class Jellyfish

java.lang.Object
net.minecraft.world.entity.Entity
net.minecraft.world.entity.LivingEntity
net.minecraft.world.entity.Mob
net.minecraft.world.entity.PathfinderMob
net.minecraft.world.entity.animal.WaterAnimal
net.minecraft.world.entity.animal.AbstractFish
net.frozenblock.lib.entity.api.NoFlopAbstractFish
net.frozenblock.wilderwild.entity.Jellyfish
All Implemented Interfaces:
net.minecraft.commands.CommandSource, net.minecraft.world.entity.animal.Bucketable, net.minecraft.world.entity.Attackable, net.minecraft.world.entity.Targeting, net.minecraft.world.level.entity.EntityAccess, net.minecraft.world.Nameable

public class Jellyfish extends net.frozenblock.lib.entity.api.NoFlopAbstractFish
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class net.minecraft.world.entity.LivingEntity

    net.minecraft.world.entity.LivingEntity.Fallsounds

    Nested 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.RemovalReason
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
     
    static final float
     
     
    int
     
    boolean
     
    static final double
     
    static final int
     
    static final int
     
    static final net.minecraft.world.entity.ai.attributes.AttributeModifier
     
    static final UUID
     
     
    static final int
     
    static final int
     
    float
     
    int
     
    float
     
    static final int
     
    static final int
     
    static final float
     
    static final float
     
    final net.minecraft.world.entity.ai.targeting.TargetingConditions
     
    int
     
    boolean
     
    float
     
    float
     
    float
     
    float
     
    float
     
    float
     
    float
     

    Fields inherited from class net.minecraft.world.entity.PathfinderMob

    DEFAULT_WALK_TARGET_VALUE

    Fields 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, xpReward

    Fields inherited from class net.minecraft.world.entity.LivingEntity

    animStep, animStepO, ARMOR_SLOT_OFFSET, ARMOR_SLOTS, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, DEATH_DURATION, deathScore, deathTime, DEFAULT_BASE_GRAVITY, DEFAULT_EYE_HEIGHT, EQUIPMENT_SLOT_OFFSET, EXTRA_RENDER_CULLING_SIZE_WITH_BIG_HAT, fallFlyTicks, HAND_SLOTS, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, LIVING_ENTITY_FLAG_IS_USING, LIVING_ENTITY_FLAG_OFF_HAND, LIVING_ENTITY_FLAG_SPIN_ATTACK, lyHeadRot, MIN_MOVEMENT_DISTANCE, noActionTime, 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, zza

    Fields 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, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, isInsidePortal, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld

    Fields inherited from interface net.minecraft.commands.CommandSource

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    Jellyfish(@NotNull net.minecraft.world.entity.EntityType<? extends Jellyfish> entityType, @NotNull net.minecraft.world.level.Level level)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAdditionalSaveData(@NotNull net.minecraft.nbt.CompoundTag compound)
     
    void
     
    void
    ageUp(int amount)
     
    void
    ageUp(int amount, boolean forced)
     
    void
     
    net.minecraft.world.entity.ai.Brain.Provider<Jellyfish>
     
    boolean
    canBeLeashed(@NotNull net.minecraft.world.entity.player.Player player)
     
    boolean
     
    boolean
    canTargetEntity(@Nullable net.minecraft.world.entity.Entity entity)
     
    static boolean
    checkJellyfishSpawnRules(@NotNull net.minecraft.world.entity.EntityType<Jellyfish> type, @NotNull net.minecraft.world.level.ServerLevelAccessor level, @NotNull net.minecraft.world.entity.MobSpawnType spawnType, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.util.RandomSource random)
     
    static void
     
    static net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builder
     
    protected void
     
    protected void
     
    @Nullable net.minecraft.world.entity.SpawnGroupData
    finalizeSpawn(@NotNull net.minecraft.world.level.ServerLevelAccessor level, @NotNull net.minecraft.world.DifficultyInstance difficulty, @NotNull net.minecraft.world.entity.MobSpawnType reason, @Nullable net.minecraft.world.entity.SpawnGroupData spawnData, net.minecraft.nbt.CompoundTag dataTag)
     
    int
     
    protected net.minecraft.sounds.SoundEvent
     
    @NotNull net.minecraft.world.entity.ai.Brain<Jellyfish>
     
    @NotNull net.minecraft.world.item.ItemStack
     
    protected net.minecraft.sounds.SoundEvent
     
    net.minecraft.resources.ResourceLocation
     
    protected net.minecraft.sounds.SoundEvent
    getHurtSound(@NotNull net.minecraft.world.damagesource.DamageSource damageSource)
     
    static int
    getJellyfishPerLevel(@NotNull net.minecraft.server.level.ServerLevel level, boolean pearlescent)
     
    @NotNull net.minecraft.sounds.SoundEvent
     
    protected float
     
    static int
    getSpeedUpSecondsWhenFeeding(int ticksUntilAdult)
     
    protected float
    getStandingEyeHeight(@NotNull net.minecraft.world.entity.Pose pose, @NotNull net.minecraft.world.entity.EntityDimensions dimensions)
     
    protected @NotNull net.minecraft.sounds.SoundEvent
     
    @Nullable net.minecraft.world.entity.LivingEntity
     
     
    void
     
    boolean
    hurt(@NotNull net.minecraft.world.damagesource.DamageSource source, float amount)
     
    boolean
     
    boolean
     
    void
    loadFromBucketTag(@NotNull net.minecraft.nbt.CompoundTag tag)
     
    protected @NotNull net.minecraft.world.entity.ai.Brain<Jellyfish>
    makeBrain(@NotNull com.mojang.serialization.Dynamic<?> dynamic)
     
    @NotNull net.minecraft.world.InteractionResult
    mobInteract(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand hand)
     
    void
    moveToAccurate(@NotNull net.minecraft.world.entity.Entity entity, double speed)
     
    protected void
    onOffspringSpawnedFromEgg(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.entity.Mob child)
     
    void
    onSyncedDataUpdated(@NotNull net.minecraft.network.syncher.EntityDataAccessor<?> key)
     
    protected void
    playSwimSound(float volume)
     
    void
    readAdditionalSaveData(@NotNull net.minecraft.nbt.CompoundTag compound)
     
    protected void
     
    void
    saveToBucketTag(@NotNull net.minecraft.world.item.ItemStack stack)
     
    protected void
     
    void
    setAge(int age)
     
    void
    setAttackTarget(net.minecraft.world.entity.LivingEntity entity)
     
    void
    setBaby(boolean baby)
     
    void
    setCanReproduce(boolean bl)
     
    void
    setVariant(@NotNull JellyfishVariant variant)
     
    void
    setVariantFromPos(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos)
     
    boolean
     
    void
    spawnChild(net.minecraft.server.level.ServerLevel level)
     
    static void
    spawnFromChest(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.core.BlockPos pos, boolean checkConfig)
     
    void
     

    Methods inherited from class net.frozenblock.lib.entity.api.NoFlopAbstractFish

    canRandomSwim, getFlopSound

    Methods inherited from class net.minecraft.world.entity.animal.AbstractFish

    createNavigation, fromBucket, getMaxSpawnClusterSize, playStepSound, removeWhenFarAway, requiresCustomPersistence, setFromBucket, travel

    Methods inherited from class net.minecraft.world.entity.animal.WaterAnimal

    baseTick, canBreatheUnderwater, checkSpawnObstruction, checkSurfaceWaterAnimalSpawnRules, getAmbientSoundInterval, getExperienceReward, getMobType, handleAirSupply, isPushedByFluid

    Methods inherited from class net.minecraft.world.entity.PathfinderMob

    checkSpawnRules, followLeashSpeed, getWalkTargetValue, getWalkTargetValue, isPathFinding, onLeashDistance, shouldStayCloseToLeashHolder, tickLeash

    Methods inherited from class net.minecraft.world.entity.Mob

    ate, canAttackType, canFireProjectileWeapon, canHoldItem, canPickUpLoot, canReplaceCurrentItem, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, clearRestriction, convertTo, createBodyControl, createMobAttributes, doHurtTarget, dropCustomDeathLoot, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getArmorSlots, getControllingPassenger, getEquipmentDropChance, getEquipmentForSlot, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getLootTableSeed, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMeleeAttackRangeSqr, getMoveControl, getNavigation, getPathfindingMalus, getPerceivedTargetDistanceSquareForMeleeAttack, getPickResult, getPickupReach, getRestrictCenter, getRestrictRadius, getSensing, hasRestriction, interact, isAggressive, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isWithinMeleeAttackRange, isWithinRestriction, isWithinRestriction, jumpInLiquid, lookAt, onPathfindingDone, onPathfindingStart, pickUpItem, playAmbientSound, playHurtSound, populateDefaultEquipmentEnchantments, populateDefaultEquipmentSlots, removeAfterChangingDimensions, removeAllGoals, removeFreeWill, restrictTo, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSpeed, setTarget, setXxa, setYya, setZza, shouldDespawnInPeaceful, shouldPassengersInheritMalus, spawnAnim, startRiding, tick, tickHeadTurn, updateControlFlags, wantsToPickUp

    Methods inherited from class net.minecraft.world.entity.LivingEntity

    actuallyHurt, addEffect, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canAttack, canBeAffected, canBeSeenAsEnemy, canBeSeenByAnyone, canChangeDimensions, canDisableShield, canFreeze, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, decreaseAirSupply, die, doAutoAttackOnTouch, doesEmitEquipEvent, doPush, dropAllDeathLoot, dropEquipment, dropExperience, eat, equipmentHasChanged, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributeBaseValue, getAttributes, getAttributeValue, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEquipmentSlotForItem, getEyeHeight, getFallFlyingTicks, getFallSounds, getFluidFallingAdjustedMovement, getFlyingSpeed, getHealth, getHurtDir, getItemInHand, getJumpBoostPower, getJumpPower, getKillCredit, getLastAttacker, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMeleeAttackReferencePosition, getNoActionTime, getOffhandItem, getProjectile, getRandom, getRelativePortalPosition, getRiddenInput, getRiddenSpeed, getScale, getSleepingPos, getSlot, 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, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isCurrentlyGlowing, isDamageSourceBlocked, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, maxUpStep, onBelowWorld, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onEquipItem, onItemPickup, onLeaveCombat, onSoulSpeedBlock, playBlockFallSound, push, pushEntities, randomTeleport, recreateFromPacket, releaseUsingItem, remove, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeFrost, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, rideTick, sendEffectToPassengers, setAbsorptionAmount, setArrowCount, setDiscardFriction, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldDiscardFriction, shouldDropExperience, shouldDropLoot, shouldRemoveSoulSpeed, shouldShowName, skipDropExperience, spawnSoulSpeedParticle, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, tickRidden, triggerItemUseEffects, tryAddFrost, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime, updateUsingItem, updateWalkAnimation, verifyEquippedItem, wasExperienceConsumed

    Methods inherited from class net.minecraft.world.entity.Entity

    absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canBeHitByProjectile, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canSprint, 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, fireImmune, fixupDimensions, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForPose, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getForward, getHandHoldingItemAngle, getId, getIndirectPassengers, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getMovementEmission, getMyRidingOffset, getName, getNameTagOffsetY, getOnPos, getOnPos, getOnPosLegacy, getPassengers, getPassengersAndSelf, getPassengersRidingOffset, getPercentFrozen, getPermissionLevel, getPickRadius, getPistonPushReaction, getPortalCooldown, getPortalWaitTime, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, 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, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, ignoreExplosion, interactAt, is, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killedEntity, lavaHurt, lerpMotion, level, limitPistonMovement, load, makeBoundingBox, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onClientRemoval, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onSyncedDataUpdated, pick, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, position, positionRider, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, refreshDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setMaxUpStep, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithKnownMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSecondsOnFire, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateInWaterStateAndDoWaterCurrentPushing, updateSwimming, waterSwimSound

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.commands.CommandSource

    alwaysAccepts
  • Field Details

    • POISON_DURATION_IN_SECONDS_BABY

      public static final int POISON_DURATION_IN_SECONDS_BABY
      See Also:
    • POISON_DURATION_IN_SECONDS

      public static final int POISON_DURATION_IN_SECONDS
      See Also:
    • STING_PITCH

      public static final float STING_PITCH
      See Also:
    • STING_PITCH_BABY

      public static final float STING_PITCH_BABY
      See Also:
    • SPAWN_CHANCE

      public static final int SPAWN_CHANCE
      See Also:
    • SPAWN_HEIGHT_NORMAL_SEA_OFFSET

      public static final int SPAWN_HEIGHT_NORMAL_SEA_OFFSET
      See Also:
    • BUBBLE_SPAWN_CHANCE

      public static final float BUBBLE_SPAWN_CHANCE
      See Also:
    • HIDABLE_PLAYER_DISTANCE

      public static final double HIDABLE_PLAYER_DISTANCE
      See Also:
    • HIDABLE_TICKS_SINCE_SPAWN

      public static final int HIDABLE_TICKS_SINCE_SPAWN
      See Also:
    • HIDING_CHANCE

      public static final int HIDING_CHANCE
      See Also:
    • JELLYFISH_MOVEMENT_SPEED_MODIFIER_BABY_UUID

      public static final UUID JELLYFISH_MOVEMENT_SPEED_MODIFIER_BABY_UUID
    • JELLYFISH_MOVEMENT_SPEED_MODIFIER_BABY

      public static final net.minecraft.world.entity.ai.attributes.AttributeModifier JELLYFISH_MOVEMENT_SPEED_MODIFIER_BABY
    • COLORED_VARIANTS

      public static final ArrayList<JellyfishVariant> COLORED_VARIANTS
    • PEARLESCENT_VARIANTS

      public static final ArrayList<JellyfishVariant> PEARLESCENT_VARIANTS
    • targetingConditions

      public final net.minecraft.world.entity.ai.targeting.TargetingConditions targetingConditions
    • xBodyRot

      public float xBodyRot
    • xRot1

      public float xRot1
    • xRot2

      public float xRot2
    • xRot3

      public float xRot3
    • xRot4

      public float xRot4
    • xRot5

      public float xRot5
    • xRot6

      public float xRot6
    • vanishing

      public boolean vanishing
    • growing

      public boolean growing
    • prevScale

      public float prevScale
    • scale

      public float scale
    • ticksSinceSpawn

      public int ticksSinceSpawn
    • age

      public int age
    • fullness

      public int fullness
    • reproductionCooldown

      public int reproductionCooldown
  • Constructor Details

    • Jellyfish

      public Jellyfish(@NotNull @NotNull net.minecraft.world.entity.EntityType<? extends Jellyfish> entityType, @NotNull @NotNull net.minecraft.world.level.Level level)
  • Method Details

    • getJellyfishPerLevel

      public static int getJellyfishPerLevel(@NotNull @NotNull net.minecraft.server.level.ServerLevel level, boolean pearlescent)
    • clearLevelToNonPearlescentCount

      public static void clearLevelToNonPearlescentCount()
    • checkJellyfishSpawnRules

      public static boolean checkJellyfishSpawnRules(@NotNull @NotNull net.minecraft.world.entity.EntityType<Jellyfish> type, @NotNull @NotNull net.minecraft.world.level.ServerLevelAccessor level, @NotNull @NotNull net.minecraft.world.entity.MobSpawnType spawnType, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.util.RandomSource random)
    • createAttributes

      @NotNull public static net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builder createAttributes()
    • spawnFromChest

      public static void spawnFromChest(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.core.BlockPos pos, boolean checkConfig)
    • getSpeedUpSecondsWhenFeeding

      public static int getSpeedUpSecondsWhenFeeding(int ticksUntilAdult)
    • registerGoals

      protected void registerGoals()
      Overrides:
      registerGoals in class net.minecraft.world.entity.animal.AbstractFish
    • finalizeSpawn

      @Nullable public @Nullable net.minecraft.world.entity.SpawnGroupData finalizeSpawn(@NotNull @NotNull net.minecraft.world.level.ServerLevelAccessor level, @NotNull @NotNull net.minecraft.world.DifficultyInstance difficulty, @NotNull @NotNull net.minecraft.world.entity.MobSpawnType reason, @Nullable @Nullable net.minecraft.world.entity.SpawnGroupData spawnData, net.minecraft.nbt.CompoundTag dataTag)
      Overrides:
      finalizeSpawn in class net.minecraft.world.entity.Mob
    • setVariantFromPos

      public void setVariantFromPos(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos)
    • onSyncedDataUpdated

      public void onSyncedDataUpdated(@NotNull @NotNull net.minecraft.network.syncher.EntityDataAccessor<?> key)
      Overrides:
      onSyncedDataUpdated in class net.minecraft.world.entity.LivingEntity
    • getStandingEyeHeight

      protected float getStandingEyeHeight(@NotNull @NotNull net.minecraft.world.entity.Pose pose, @NotNull @NotNull net.minecraft.world.entity.EntityDimensions dimensions)
      Overrides:
      getStandingEyeHeight in class net.minecraft.world.entity.animal.AbstractFish
    • getAmbientSound

      protected net.minecraft.sounds.SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class net.minecraft.world.entity.Mob
    • getSwimSound

      @NotNull protected @NotNull net.minecraft.sounds.SoundEvent getSwimSound()
      Overrides:
      getSwimSound in class net.minecraft.world.entity.animal.AbstractFish
    • playSwimSound

      protected void playSwimSound(float volume)
      Overrides:
      playSwimSound in class net.minecraft.world.entity.Entity
    • getHurtSound

      protected net.minecraft.sounds.SoundEvent getHurtSound(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource damageSource)
      Overrides:
      getHurtSound in class net.minecraft.world.entity.LivingEntity
    • getDeathSound

      protected net.minecraft.sounds.SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class net.minecraft.world.entity.LivingEntity
    • canBeLeashed

      public boolean canBeLeashed(@NotNull @NotNull net.minecraft.world.entity.player.Player player)
      Overrides:
      canBeLeashed in class net.minecraft.world.entity.animal.WaterAnimal
    • getSoundVolume

      protected float getSoundVolume()
      Overrides:
      getSoundVolume in class net.minecraft.world.entity.LivingEntity
    • brainProvider

      @NotNull public net.minecraft.world.entity.ai.Brain.Provider<Jellyfish> brainProvider()
      Overrides:
      brainProvider in class net.minecraft.world.entity.LivingEntity
    • makeBrain

      @NotNull protected @NotNull net.minecraft.world.entity.ai.Brain<Jellyfish> makeBrain(@NotNull @NotNull com.mojang.serialization.Dynamic<?> dynamic)
      Overrides:
      makeBrain in class net.minecraft.world.entity.LivingEntity
    • getBrain

      @NotNull public @NotNull net.minecraft.world.entity.ai.Brain<Jellyfish> getBrain()
      Overrides:
      getBrain in class net.minecraft.world.entity.LivingEntity
    • sendDebugPackets

      protected void sendDebugPackets()
      Overrides:
      sendDebugPackets in class net.minecraft.world.entity.Mob
    • getTarget

      @Nullable public @Nullable net.minecraft.world.entity.LivingEntity getTarget()
      Specified by:
      getTarget in interface net.minecraft.world.entity.Targeting
      Overrides:
      getTarget in class net.minecraft.world.entity.Mob
    • setAttackTarget

      public void setAttackTarget(net.minecraft.world.entity.LivingEntity entity)
    • aiStep

      public void aiStep()
      Overrides:
      aiStep in class net.minecraft.world.entity.animal.AbstractFish
    • handleEntityEvent

      public void handleEntityEvent(byte id)
      Overrides:
      handleEntityEvent in class net.minecraft.world.entity.Mob
    • stingEntities

      public void stingEntities()
    • onOffspringSpawnedFromEgg

      protected void onOffspringSpawnedFromEgg(@NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.entity.Mob child)
      Overrides:
      onOffspringSpawnedFromEgg in class net.minecraft.world.entity.Mob
    • moveToAccurate

      public void moveToAccurate(@NotNull @NotNull net.minecraft.world.entity.Entity entity, double speed)
    • canTargetEntity

      @Contract("null->false") public boolean canTargetEntity(@Nullable @Nullable net.minecraft.world.entity.Entity entity)
    • customServerAiStep

      protected void customServerAiStep()
      Overrides:
      customServerAiStep in class net.minecraft.world.entity.Mob
    • shouldHide

      public boolean shouldHide()
    • getPickupSound

      @NotNull public @NotNull net.minecraft.sounds.SoundEvent getPickupSound()
      Specified by:
      getPickupSound in interface net.minecraft.world.entity.animal.Bucketable
      Overrides:
      getPickupSound in class net.minecraft.world.entity.animal.AbstractFish
    • mobInteract

      @NotNull public @NotNull net.minecraft.world.InteractionResult mobInteract(@NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.InteractionHand hand)
      Overrides:
      mobInteract in class net.minecraft.world.entity.animal.AbstractFish
    • spawnChild

      public void spawnChild(net.minecraft.server.level.ServerLevel level)
    • hurt

      public boolean hurt(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource source, float amount)
      Overrides:
      hurt in class net.minecraft.world.entity.LivingEntity
    • getDefaultLootTable

      public net.minecraft.resources.ResourceLocation getDefaultLootTable()
      Overrides:
      getDefaultLootTable in class net.minecraft.world.entity.Mob
    • getBucketItemStack

      @NotNull public @NotNull net.minecraft.world.item.ItemStack getBucketItemStack()
    • getVariant

      @NotNull public @NotNull JellyfishVariant getVariant()
    • setVariant

      public void setVariant(@NotNull @NotNull JellyfishVariant variant)
    • canReproduce

      public boolean canReproduce()
    • setCanReproduce

      public void setCanReproduce(boolean bl)
    • isRGB

      public boolean isRGB()
    • ageUp

      public void ageUp(int amount, boolean forced)
    • ageUp

      public void ageUp(int amount)
    • getAge

      public int getAge()
    • setAge

      public void setAge(int age)
    • ageBoundaryReached

      public void ageBoundaryReached()
    • isBaby

      public boolean isBaby()
      Overrides:
      isBaby in class net.minecraft.world.entity.LivingEntity
    • setBaby

      public void setBaby(boolean baby)
      Overrides:
      setBaby in class net.minecraft.world.entity.Mob
    • defineSynchedData

      protected void defineSynchedData()
      Overrides:
      defineSynchedData in class net.minecraft.world.entity.animal.AbstractFish
    • saveToBucketTag

      public void saveToBucketTag(@NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      Specified by:
      saveToBucketTag in interface net.minecraft.world.entity.animal.Bucketable
      Overrides:
      saveToBucketTag in class net.minecraft.world.entity.animal.AbstractFish
    • loadFromBucketTag

      public void loadFromBucketTag(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      Specified by:
      loadFromBucketTag in interface net.minecraft.world.entity.animal.Bucketable
      Overrides:
      loadFromBucketTag in class net.minecraft.world.entity.animal.AbstractFish
    • addAdditionalSaveData

      public void addAdditionalSaveData(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound)
      Overrides:
      addAdditionalSaveData in class net.minecraft.world.entity.animal.AbstractFish
    • readAdditionalSaveData

      public void readAdditionalSaveData(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound)
      Overrides:
      readAdditionalSaveData in class net.minecraft.world.entity.animal.AbstractFish