Class GlowSquidEntity

All Implemented Interfaces:
Attackable, Targeter, CommandOutput, Nameable, EntityLike

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

    • DARK_TICKS_REMAINING

      private static final TrackedData<Integer> DARK_TICKS_REMAINING
      Mappings:
      Namespace Name Mixin selector
      official bX Lbfr;bX:Laby;
      intermediary field_28403 Lnet/minecraft/class_5776;field_28403:Lnet/minecraft/class_2940;
      named DARK_TICKS_REMAINING Lnet/minecraft/entity/passive/GlowSquidEntity;DARK_TICKS_REMAINING:Lnet/minecraft/entity/data/TrackedData;
  • Constructor Details

    • GlowSquidEntity

      public GlowSquidEntity(EntityType<? extends GlowSquidEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfj;<init>(Lbfn;Lcmm;)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

    • getInkParticle

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

      protected void initDataTracker()
      Initializes data tracker.
      Overrides:
      initDataTracker in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbfj;a_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • getSquirtSound

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

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class SquidEntity
      Mappings:
      Namespace Name Mixin selector
      official s Lbgb;s()Lamg;
      intermediary method_5994 Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
      named getAmbientSound Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class SquidEntity
      Mappings:
      Namespace Name Mixin selector
      official d Lbfz;d(Lben;)Lamg;
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      named getHurtSound Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class SquidEntity
      Mappings:
      Namespace Name Mixin selector
      official g_ Lbfz;g_()Lamg;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses has 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
      official b Lbfj;b(Lqr;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses has 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
      official a Lbfj;a(Lqr;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class SquidEntity
      Mappings:
      Namespace Name Mixin selector
      official b_ Lbfz;b_()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()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 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
      official a Lbfj;a(Lben;F)Z
      intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
    • setDarkTicksRemaining

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

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

      public static boolean canSpawn(EntityType<? extends LivingEntity> type, ServerWorldAccess world, SpawnReason reason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lbfr;a(Lbfn;Lcnb;Lbgd;Lgu;Lapf;)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
      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