Class SalmonEntity

All Implemented Interfaces:
Attackable, Bucketable, DataTracked, EquipmentHolder, Leashable, Targeter, VariantHolder<SalmonEntity.Variant>, ScoreHolder, CommandOutput, Nameable, EntityLike

public class SalmonEntity extends SchoolingFishEntity implements VariantHolder<SalmonEntity.Variant>
Mappings:
Namespace Name
named net/minecraft/entity/passive/SalmonEntity
intermediary net/minecraft/class_1462
official cgq
  • Field Details

    • VARIANT

      private static final TrackedData<String> VARIANT
      Mappings:
      Namespace Name Mixin selector
      named VARIANT Lnet/minecraft/entity/passive/SalmonEntity;VARIANT:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_52469 Lnet/minecraft/class_1462;field_52469:Lnet/minecraft/class_2940;
      official b Lcgq;b:Lakg;
  • Constructor Details

    • SalmonEntity

      public SalmonEntity(EntityType<? extends SalmonEntity> 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> Lbtj;<init>(Lbtq;Ldds;)V
  • Method Details

    • getMaxGroupSize

      public int getMaxGroupSize()
      Overrides:
      getMaxGroupSize in class SchoolingFishEntity
      Mappings:
      Namespace Name Mixin selector
      named getMaxGroupSize Lnet/minecraft/entity/passive/SchoolingFishEntity;getMaxGroupSize()I
      intermediary method_6465 Lnet/minecraft/class_1425;method_6465()I
      official gq Lcft;gq()I
    • getBucketItem

      public ItemStack getBucketItem()
      Specified by:
      getBucketItem in interface Bucketable
      Mappings:
      Namespace Name Mixin selector
      named getBucketItem Lnet/minecraft/entity/Bucketable;getBucketItem()Lnet/minecraft/item/ItemStack;
      intermediary method_6452 Lnet/minecraft/class_5761;method_6452()Lnet/minecraft/class_1799;
      official V_ Lcfx;V_()Lcvl;
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      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 w Lbuh;w()Lawc;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class LivingEntity
      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 n_ Lbuf;n_()Lawc;
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class LivingEntity
      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 Lbuf;d(Lbsb;)Lawc;
    • getFlopSound

      protected SoundEvent getFlopSound()
      Specified by:
      getFlopSound in class FishEntity
      Mappings:
      Namespace Name Mixin selector
      named getFlopSound Lnet/minecraft/entity/passive/FishEntity;getFlopSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_6457 Lnet/minecraft/class_1422;method_6457()Lnet/minecraft/class_3414;
      official gp Lcfr;gp()Lawc;
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class FishEntity
      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 Lbtj;a(Lakk$a;)V
    • 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 FishEntity
      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 Lbtj;b(Luf;)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 FishEntity
      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 Lbtj;a(Luf;)V
    • setVariant

      public void setVariant(SalmonEntity.Variant variant)
      Specified by:
      setVariant in interface VariantHolder<SalmonEntity.Variant>
      Mappings:
      Namespace Name Mixin selector
      named setVariant Lnet/minecraft/entity/passive/SalmonEntity;setVariant(Lnet/minecraft/entity/passive/SalmonEntity$Variant;)V
      intermediary method_61471 Lnet/minecraft/class_1462;method_61471(Lnet/minecraft/class_1462$class_9869;)V
      official a Lcgq;a(Lcgq$a;)V
    • getVariant

      public SalmonEntity.Variant getVariant()
      Specified by:
      getVariant in interface VariantHolder<SalmonEntity.Variant>
      Mappings:
      Namespace Name Mixin selector
      named getVariant Lnet/minecraft/entity/passive/SalmonEntity;getVariant()Lnet/minecraft/entity/passive/SalmonEntity$Variant;
      intermediary method_61472 Lnet/minecraft/class_1462;method_61472()Lnet/minecraft/class_1462$class_9869;
      official gx Lcgq;gx()Lcgq$a;
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class SchoolingFishEntity
      Mappings:
      Namespace Name Mixin selector
      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/entity/EntityData;
      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_1315;
      official a Lbuh;a(Ldei;Lbri;Lbtp;Lbux;)Lbux;