Class GlowSquidEntity

All Implemented Interfaces:
Attackable, DataTracked, EquipmentHolder, Targeter, ScoreHolder, CommandOutput, Nameable, EntityLike

public class GlowSquidEntity extends SquidEntity
Mappings:
Namespace Name
named net/minecraft/entity/passive/GlowSquidEntity
intermediary net/minecraft/class_5776
official btj
  • 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 cc Lbtj;cc:Lakk;
  • 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> Lbsw;<init>(Lbtc;Ldca;)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 s Lcgg;s()Llg;
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class MobEntity
      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 Lbsw;a(Lako$a;)V
    • 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 u Lcgg;u()Lavz;
    • 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 v Lbtt;v()Lavz;
    • 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 d Lbtr;d(Lbrp;)Lavz;
    • 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 o_ Lbtr;o_()Lavz;
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. 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 class MobEntity
      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 Lbsw;b(Lus;)V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. 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 class MobEntity
      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 Lbsw;a(Lus;)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 n_ Lbtr;n_()V
    • damage

      public boolean damage(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

      invalid reference
      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 Entity.isInvulnerableTo(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/entity/damage/DamageSource;F)Z
      intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
      official a Lbsw;a(Lbrp;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 c Lbtj;c(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 y Lbtj;y()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 Lbtj;a(Lbtc;Ldcp;Lbtv;Liz;Lazh;)Z