Class GlowSquidEntity

All Implemented Interfaces:
ComponentsAccess, Attackable, DataTracked, EquipmentHolder, Leashable, Targeter, ScoreHolder, Nameable, EntityLike, UniquelyIdentifiable, ServerWaypoint, Waypoint

public class GlowSquidEntity extends SquidEntity
Mappings:
Namespace Name
named net/minecraft/entity/passive/GlowSquidEntity
intermediary net/minecraft/class_5776
official cab
  • Field Details

    • DARK_TICKS_REMAINING

      private static final TrackedData<Integer> DARK_TICKS_REMAINING
      Mappings:
      Namespace Name Mixin selector
      named DARK_TICKS_REMAINING Lnet/minecraft/entity/passive/GlowSquidEntity;DARK_TICKS_REMAINING:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_28403 Lnet/minecraft/class_5776;field_28403:Lnet/minecraft/class_2940;
      official cs Lcab;cs:Lalh;
    • DEFAULT_DARK_TICKS_REMAINING

      private static final int DEFAULT_DARK_TICKS_REMAINING
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_DARK_TICKS_REMAINING Lnet/minecraft/entity/passive/GlowSquidEntity;DEFAULT_DARK_TICKS_REMAINING:I
      intermediary field_57587 Lnet/minecraft/class_5776;field_57587:I
      official ct Lcab;ct:I
  • Constructor Details

    • GlowSquidEntity

      public GlowSquidEntity(EntityType<? extends GlowSquidEntity> type, World world)
      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> Lbzm;<init>(Lbzv;Ldmu;)V
  • Method Details

    • getInkParticle

      protected ParticleEffect getInkParticle()
      Overrides:
      getInkParticle in class SquidEntity
      Mappings:
      Namespace Name Mixin selector
      named getInkParticle Lnet/minecraft/entity/passive/SquidEntity;getInkParticle()Lnet/minecraft/particle/ParticleEffect;
      intermediary method_33336 Lnet/minecraft/class_1477;method_33336()Lnet/minecraft/class_2394;
      official m Lcnj;m()Lmc;
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class PassiveEntity
      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 Lbzm;a(Lall$a;)V
    • createChild

      @Nullable public @Nullable PassiveEntity createChild(ServerWorld world, PassiveEntity entity)
      Overrides:
      createChild in class SquidEntity
      Mappings:
      Namespace Name Mixin selector
      named createChild Lnet/minecraft/entity/passive/PassiveEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/PassiveEntity;
      intermediary method_5613 Lnet/minecraft/class_1296;method_5613(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1296;
      official a Lbzc;a(Laub;Lbzc;)Lbzc;
    • getSquirtSound

      protected SoundEvent getSquirtSound()
      Overrides:
      getSquirtSound in class SquidEntity
      Mappings:
      Namespace Name Mixin selector
      named getSquirtSound Lnet/minecraft/entity/passive/SquidEntity;getSquirtSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_33337 Lnet/minecraft/class_1477;method_33337()Lnet/minecraft/class_3414;
      official n Lcnj;n()Layy;
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class SquidEntity
      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 p Lcao;p()Layy;
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class SquidEntity
      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 Lcam;e(Lbyb;)Layy;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class SquidEntity
      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 f_ Lcam;f_()Layy;
    • writeCustomData

      protected void writeCustomData(WriteView view)
      Overrides:
      writeCustomData in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named writeCustomData Lnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)V
      official a Lbzm;a(Lfdc;)V
    • readCustomData

      protected void readCustomData(ReadView view)
      Overrides:
      readCustomData in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named readCustomData Lnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)V
      official a Lbzm;a(Lfda;)V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class SquidEntity
      Mappings:
      Namespace Name Mixin selector
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      official e_ Lcam;e_()V
    • damage

      public boolean damage(ServerWorld world, DamageSource source, float amount)
      Applies a damage to this entity. The exact implementation differs between subclasses.

      LivingEntity has health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.

      Some entities like ItemEntity also have health value, which the overridden method decrements. There also exist several entities, like EndCrystalEntity, where any damage discards the entity (perhaps with an explosion).

      If this is overridden, it must check the result of LivingEntity.isInvulnerableTo(net.minecraft.server.world.ServerWorld, net.minecraft.entity.damage.DamageSource) and return early.

      Overrides:
      damage in class SquidEntity
      Returns:
      whether the entity was actually damaged
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Z
      intermediary method_64397 Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Z
      official a Lbzm;a(Laub;Lbyb;F)Z
    • setDarkTicksRemaining

      private void setDarkTicksRemaining(int ticks)
      Mappings:
      Namespace Name Mixin selector
      named setDarkTicksRemaining Lnet/minecraft/entity/passive/GlowSquidEntity;setDarkTicksRemaining(I)V
      intermediary method_33333 Lnet/minecraft/class_5776;method_33333(I)V
      official s Lcab;s(I)V
    • getDarkTicksRemaining

      public int getDarkTicksRemaining()
      Mappings:
      Namespace Name Mixin selector
      named getDarkTicksRemaining Lnet/minecraft/entity/passive/GlowSquidEntity;getDarkTicksRemaining()I
      intermediary method_33334 Lnet/minecraft/class_5776;method_33334()I
      official t Lcab;t()I
    • canSpawn

      public static boolean canSpawn(EntityType<? extends LivingEntity> type, ServerWorldAccess world, SpawnReason reason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      named canSpawn Lnet/minecraft/entity/passive/GlowSquidEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
      intermediary method_38962 Lnet/minecraft/class_5776;method_38962(Lnet/minecraft/class_1299;Lnet/minecraft/class_5425;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
      official a Lcab;a(Lbzv;Ldnl;Lbzu;Ljb;Lbck;)Z