Package net.minecraft

Class class_11009

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

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

    • field_58662

      private static final TrackedData<RegistryEntry<CowVariant>> field_58662
      Mappings:
      Namespace Name Mixin selector
      named field_58662 Lnet/minecraft/class_11009;field_58662:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_58662 Lnet/minecraft/class_11009;field_58662:Lnet/minecraft/class_2940;
      official bO Lcts;bO:Lale;
  • Constructor Details

    • class_11009

      public class_11009(EntityType<? extends class_11009> 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

    • 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
    • initialize

      public 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;
    • method_69384

      public void method_69384(RegistryEntry<CowVariant> registryEntry)
      Mappings:
      Namespace Name Mixin selector
      named method_69384 Lnet/minecraft/class_11009;method_69384(Lnet/minecraft/registry/entry/RegistryEntry;)V
      intermediary method_69384 Lnet/minecraft/class_11009;method_69384(Lnet/minecraft/class_6880;)V
      official a Lcts;a(Ljh;)V
    • method_69385

      public RegistryEntry<CowVariant> method_69385()
      Mappings:
      Namespace Name Mixin selector
      named method_69385 Lnet/minecraft/class_11009;method_69385()Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary method_69385 Lnet/minecraft/class_11009;method_69385()Lnet/minecraft/class_6880;
      official gH Lcts;gH()Ljh;
    • 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