Package net.minecraft

Class class_11007

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

public class class_11007 extends class_10995
Mappings:
Namespace Name
named net/minecraft/class_11007
intermediary net/minecraft/class_11007
official ctq
  • Field Details

    • field_58647

      private static final TrackedData<RegistryEntry<CatVariant>> field_58647
      Mappings:
      Namespace Name Mixin selector
      named field_58647 Lnet/minecraft/class_11007;field_58647:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_58647 Lnet/minecraft/class_11007;field_58647:Lnet/minecraft/class_2940;
      official bO Lctq;bO:Lale;
    • field_58648

      private static final TrackedData<Integer> field_58648
      Mappings:
      Namespace Name Mixin selector
      named field_58648 Lnet/minecraft/class_11007;field_58648:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_58648 Lnet/minecraft/class_11007;field_58648:Lnet/minecraft/class_2940;
      official bP Lctq;bP:Lale;
    • field_58649

      private static final RegistryKey<CatVariant> field_58649
      Mappings:
      Namespace Name Mixin selector
      named field_58649 Lnet/minecraft/class_11007;field_58649:Lnet/minecraft/registry/RegistryKey;
      intermediary field_58649 Lnet/minecraft/class_11007;field_58649:Lnet/minecraft/class_5321;
      official bQ Lctq;bQ:Lama;
    • field_58650

      private static final DyeColor field_58650
      Mappings:
      Namespace Name Mixin selector
      named field_58650 Lnet/minecraft/class_11007;field_58650:Lnet/minecraft/util/DyeColor;
      intermediary field_58650 Lnet/minecraft/class_11007;field_58650:Lnet/minecraft/class_1767;
      official bR Lctq;bR:Ldbo;
  • Constructor Details

    • class_11007

      public class_11007(EntityType<? extends class_11007> 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> Lbye;<init>(Lbyn;Ldmy;)V
  • Method Details

    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class class_10995
      Mappings:
      Namespace Name Mixin selector
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      official C Lbzh;C()V
    • method_69376

      public RegistryEntry<CatVariant> method_69376()
      Mappings:
      Namespace Name Mixin selector
      named method_69376 Lnet/minecraft/class_11007;method_69376()Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary method_69376 Lnet/minecraft/class_11007;method_69376()Lnet/minecraft/class_6880;
      official gH Lctq;gH()Ljh;
    • method_69375

      private void method_69375(RegistryEntry<CatVariant> registryEntry)
      Mappings:
      Namespace Name Mixin selector
      named method_69375 Lnet/minecraft/class_11007;method_69375(Lnet/minecraft/registry/entry/RegistryEntry;)V
      intermediary method_69375 Lnet/minecraft/class_11007;method_69375(Lnet/minecraft/class_6880;)V
      official a Lctq;a(Ljh;)V
    • get

      @Nullable public <T> T get(ComponentType<? extends T> type)
      Specified by:
      get in interface ComponentsAccess
      Overrides:
      get in class Entity
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/component/ComponentsAccess;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;
      intermediary method_58694 Lnet/minecraft/class_9473;method_58694(Lnet/minecraft/class_9331;)Ljava/lang/Object;
      official a Lkh;a(Lkl;)Ljava/lang/Object;
    • copyComponentsFrom

      protected void copyComponentsFrom(ComponentsAccess from)
      Overrides:
      copyComponentsFrom in class Entity
      Mappings:
      Namespace Name Mixin selector
      named copyComponentsFrom Lnet/minecraft/entity/Entity;copyComponentsFrom(Lnet/minecraft/component/ComponentsAccess;)V
      intermediary method_66649 Lnet/minecraft/class_1297;method_66649(Lnet/minecraft/class_9473;)V
      official a Lbye;a(Lkh;)V
    • setApplicableComponent

      protected <T> boolean setApplicableComponent(ComponentType<T> type, T value)
      Overrides:
      setApplicableComponent in class Entity
      Mappings:
      Namespace Name Mixin selector
      named setApplicableComponent Lnet/minecraft/entity/Entity;setApplicableComponent(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Z
      intermediary method_66654 Lnet/minecraft/class_1297;method_66654(Lnet/minecraft/class_9331;Ljava/lang/Object;)Z
      official b Lbye;b(Lkl;Ljava/lang/Object;)Z
    • method_69377

      public DyeColor method_69377()
      Mappings:
      Namespace Name Mixin selector
      named method_69377 Lnet/minecraft/class_11007;method_69377()Lnet/minecraft/util/DyeColor;
      intermediary method_69377 Lnet/minecraft/class_11007;method_69377()Lnet/minecraft/class_1767;
      official gI Lctq;gI()Ldbo;
    • method_69374

      private void method_69374(DyeColor dyeColor)
      Mappings:
      Namespace Name Mixin selector
      named method_69374 Lnet/minecraft/class_11007;method_69374(Lnet/minecraft/util/DyeColor;)V
      intermediary method_69374 Lnet/minecraft/class_11007;method_69374(Lnet/minecraft/class_1767;)V
      official a Lctq;a(Ldbo;)V
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Overrides:
      initDataTracker in class TameableEntity
      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 Lbye;a(Lali$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 TameableEntity
      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 Lbye;b(Luc;)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 TameableEntity
      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 Lbye;a(Luc;)V
    • getAmbientSound

      @Nullable protected @Nullable 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 r Lbzh;r()Laxv;
    • getMinAmbientSoundDelay

      public int getMinAmbientSoundDelay()
      Overrides:
      getMinAmbientSoundDelay in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named getMinAmbientSoundDelay Lnet/minecraft/entity/mob/MobEntity;getMinAmbientSoundDelay()I
      intermediary method_5970 Lnet/minecraft/class_1308;method_5970()I
      official Q Lbzh;Q()I
    • method_69378

      public void method_69378()
      Mappings:
      Namespace Name Mixin selector
      named method_69378 Lnet/minecraft/class_11007;method_69378()V
      intermediary method_69378 Lnet/minecraft/class_11007;method_69378()V
      official gJ Lctq;gJ()V
    • method_69379

      public static DefaultAttributeContainer.Builder method_69379()
      Mappings:
      Namespace Name Mixin selector
      named method_69379 Lnet/minecraft/class_11007;method_69379()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_69379 Lnet/minecraft/class_11007;method_69379()Lnet/minecraft/class_5132$class_5133;
      official gK Lctq;gK()Lcak$a;
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class MobEntity
      See Also:
      API Note:
      This can be overridden to add additional logics. super.tick(); should be called in those cases.
      Implementation Note:
      By default, this delegates all logics to MobEntity.baseTick().
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/Entity;tick()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      official i Lbye;i()V
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class PassiveEntity
      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 Lbzh;a(Ldnp;Lbvz;Lbym;Lbzx;)Lbzx;
    • isBreedingItem

      public boolean isBreedingItem(ItemStack stack)
      Overrides:
      isBreedingItem in class class_10995
      Mappings:
      Namespace Name Mixin selector
      named isBreedingItem Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_6481 Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
      official i Lclc;i(Ldcs;)Z
    • canImmediatelyDespawn

      public boolean canImmediatelyDespawn(double distanceSquared)
      Overrides:
      canImmediatelyDespawn in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named canImmediatelyDespawn Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
      intermediary method_5974 Lnet/minecraft/class_1308;method_5974(D)Z
      official h Lbzh;h(D)Z