Package net.minecraft

Class class_11019

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

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

    • field_58682

      private static final TrackedData<Integer> field_58682
      Mappings:
      Namespace Name Mixin selector
      named field_58682 Lnet/minecraft/class_11019;field_58682:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_58682 Lnet/minecraft/class_11019;field_58682:Lnet/minecraft/class_2940;
      official bO Lctw;bO:Lale;
    • field_58683

      private static final int field_58683
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_58683 Lnet/minecraft/class_11019;field_58683:I
      intermediary field_58683 Lnet/minecraft/class_11019;field_58683:I
      official bP Lctw;bP:I
    • field_58684

      private static final String field_58684
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_58684 Lnet/minecraft/class_11019;field_58684:Ljava/lang/String;
      intermediary field_58684 Lnet/minecraft/class_11019;field_58684:Ljava/lang/String;
      official bQ Lctw;bQ:Ljava/lang/String;
    • field_58685

      Mappings:
      Namespace Name Mixin selector
      named field_58685 Lnet/minecraft/class_11019;field_58685:Lnet/minecraft/component/type/SuspiciousStewEffectsComponent;
      intermediary field_58685 Lnet/minecraft/class_11019;field_58685:Lnet/minecraft/class_9298;
      official bR Lctw;bR:Ldga;
    • field_58686

      @Nullable private @Nullable UUID field_58686
      Mappings:
      Namespace Name Mixin selector
      named field_58686 Lnet/minecraft/class_11019;field_58686:Ljava/util/UUID;
      intermediary field_58686 Lnet/minecraft/class_11019;field_58686:Ljava/util/UUID;
      official bS Lctw;bS:Ljava/util/UUID;
  • Constructor Details

    • class_11019

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

    • getPathfindingFavor

      public float getPathfindingFavor(BlockPos pos, WorldView world)
      Overrides:
      getPathfindingFavor in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named getPathfindingFavor Lnet/minecraft/entity/mob/PathAwareEntity;getPathfindingFavor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/WorldView;)F
      intermediary method_6144 Lnet/minecraft/class_1314;method_6144(Lnet/minecraft/class_2338;Lnet/minecraft/class_4538;)F
      official a Lbzn;a(Lix;Ldnb;)F
    • onStruckByLightning

      public void onStruckByLightning(ServerWorld world, LightningEntity lightning)
      Called when the entity is struck by lightning. This sets the entity on fire and deals lightning damage by default; entities that do not take such damage should override this method to do nothing.
      Overrides:
      onStruckByLightning in class Entity
      Mappings:
      Namespace Name Mixin selector
      named onStruckByLightning Lnet/minecraft/entity/Entity;onStruckByLightning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LightningEntity;)V
      intermediary method_5800 Lnet/minecraft/class_1297;method_5800(Lnet/minecraft/class_3218;Lnet/minecraft/class_1538;)V
      official a Lbye;a(Last;Lbze;)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
    • 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
    • method_69401

      private Optional<SuspiciousStewEffectsComponent> method_69401(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      named method_69401 Lnet/minecraft/class_11019;method_69401(Lnet/minecraft/item/ItemStack;)Ljava/util/Optional;
      intermediary method_69401 Lnet/minecraft/class_11019;method_69401(Lnet/minecraft/class_1799;)Ljava/util/Optional;
      official j Lctw;j(Ldcs;)Ljava/util/Optional;
    • method_69399

      private void method_69399(MooshroomEntity.Variant variant)
      Mappings:
      Namespace Name Mixin selector
      named method_69399 Lnet/minecraft/class_11019;method_69399(Lnet/minecraft/entity/passive/MooshroomEntity$Variant;)V
      intermediary method_69399 Lnet/minecraft/class_11019;method_69399(Lnet/minecraft/class_1438$class_4053;)V
      official a Lctw;a(Lclt$a;)V
    • method_69400

      public MooshroomEntity.Variant method_69400()
      Mappings:
      Namespace Name Mixin selector
      named method_69400 Lnet/minecraft/class_11019;method_69400()Lnet/minecraft/entity/passive/MooshroomEntity$Variant;
      intermediary method_69400 Lnet/minecraft/class_11019;method_69400()Lnet/minecraft/class_1438$class_4053;
      official gH Lctw;gH()Lclt$a;
    • 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