Package net.minecraft

Class class_9461

All Implemented Interfaces:
DataTracked, ScoreHolder, CommandOutput, Nameable, EntityLike

public class class_9461 extends Entity
Mappings:
Namespace Name
named net/minecraft/class_9461
intermediary net/minecraft/class_9461
official bsv
  • Field Details

    • field_50129

      private static final int field_50129
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_50129 Lnet/minecraft/class_9461;field_50129:I
      intermediary field_50129 Lnet/minecraft/class_9461;field_50129:I
      official c Lbsv;c:I
    • field_50130

      private static final int field_50130
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_50130 Lnet/minecraft/class_9461;field_50130:I
      intermediary field_50130 Lnet/minecraft/class_9461;field_50130:I
      official d Lbsv;d:I
    • field_50131

      private static final String field_50131
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_50131 Lnet/minecraft/class_9461;field_50131:Ljava/lang/String;
      intermediary field_50131 Lnet/minecraft/class_9461;field_50131:Ljava/lang/String;
      official e Lbsv;e:Ljava/lang/String;
    • field_50132

      private static final String field_50132
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_50132 Lnet/minecraft/class_9461;field_50132:Ljava/lang/String;
      intermediary field_50132 Lnet/minecraft/class_9461;field_50132:Ljava/lang/String;
      official f Lbsv;f:Ljava/lang/String;
    • field_50133

      private static final TrackedData<ItemStack> field_50133
      Mappings:
      Namespace Name Mixin selector
      named field_50133 Lnet/minecraft/class_9461;field_50133:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_50133 Lnet/minecraft/class_9461;field_50133:Lnet/minecraft/class_2940;
      official g Lbsv;g:Lajr;
    • field_50128

      public static final int field_50128
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_50128 Lnet/minecraft/class_9461;field_50128:I
      intermediary field_50128 Lnet/minecraft/class_9461;field_50128:I
      official b Lbsv;b:I
    • field_50134

      private long field_50134
      Mappings:
      Namespace Name Mixin selector
      named field_50134 Lnet/minecraft/class_9461;field_50134:J
      intermediary field_50134 Lnet/minecraft/class_9461;field_50134:J
      official h Lbsv;h:J
  • Constructor Details

    • class_9461

      public class_9461(EntityType<? extends class_9461> 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> Lbru;<init>(Lbsa;Ldax;)V
  • Method Details

    • method_58638

      public static class_9461 method_58638(World world, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      named method_58638 Lnet/minecraft/class_9461;method_58638(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/class_9461;
      intermediary method_58638 Lnet/minecraft/class_9461;method_58638(Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;)Lnet/minecraft/class_9461;
      official a Lbsv;a(Ldax;Lcto;)Lbsv;
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class Entity
      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 Entity.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 l Lbru;l()V
    • method_58641

      private void method_58641()
      Mappings:
      Namespace Name Mixin selector
      named method_58641 Lnet/minecraft/class_9461;method_58641()V
      intermediary method_58641 Lnet/minecraft/class_9461;method_58641()V
      official u Lbsv;u()V
    • method_58642

      private void method_58642()
      Mappings:
      Namespace Name Mixin selector
      named method_58642 Lnet/minecraft/class_9461;method_58642()V
      intermediary method_58642 Lnet/minecraft/class_9461;method_58642()V
      official v Lbsv;v()V
    • method_58643

      private void method_58643()
      Mappings:
      Namespace Name Mixin selector
      named method_58643 Lnet/minecraft/class_9461;method_58643()V
      intermediary method_58643 Lnet/minecraft/class_9461;method_58643()V
      official w Lbsv;w()V
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Specified by:
      initDataTracker in class Entity
      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 Lbru;a(Lajv$a;)V
    • readCustomDataFromNbt

      protected 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.

      Specified by:
      readCustomDataFromNbt in class Entity
      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 Lbru;a(Lud;)V
    • writeCustomDataToNbt

      protected 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.

      Specified by:
      writeCustomDataToNbt in class Entity
      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 Lbru;b(Lud;)V
    • canAddPassenger

      protected boolean canAddPassenger(Entity passenger)
      Returns whether entity can ride this entity.

      Returning false causes other entities to be unable to ride this entity. For example, BoatEntity uses this to restrict how many passengers can ride the same boat (2 for normal, 1 for chest boat).

      This is the opposite of Entity.canStartRiding(net.minecraft.entity.Entity).

      Overrides:
      canAddPassenger in class Entity
      Returns:
      whether entity can ride this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named canAddPassenger Lnet/minecraft/entity/Entity;canAddPassenger(Lnet/minecraft/entity/Entity;)Z
      intermediary method_5818 Lnet/minecraft/class_1297;method_5818(Lnet/minecraft/class_1297;)Z
      official r Lbru;r(Lbru;)Z
    • couldAcceptPassenger

      protected boolean couldAcceptPassenger()
      Returns true if this entity supports passengers in general.
      Overrides:
      couldAcceptPassenger in class Entity
      Returns:
      true if this entity supports passengers in general
      Mappings:
      Namespace Name Mixin selector
      named couldAcceptPassenger Lnet/minecraft/entity/Entity;couldAcceptPassenger()Z
      intermediary method_48921 Lnet/minecraft/class_1297;method_48921()Z
      official bJ Lbru;bJ()Z
    • addPassenger

      protected void addPassenger(Entity passenger)
      Adds passenger as a passenger. This should not be called normally; call Entity.startRiding(Entity) instead. (Note that the entity to pass and the entity to call are swapped in this case; entity.startRiding(vehicle) is the equivalent of vehicle.addPassenger(entity).)
      Overrides:
      addPassenger in class Entity
      Throws:
      IllegalStateException - when the method is called directly
      Mappings:
      Namespace Name Mixin selector
      named addPassenger Lnet/minecraft/entity/Entity;addPassenger(Lnet/minecraft/entity/Entity;)V
      intermediary method_5627 Lnet/minecraft/class_1297;method_5627(Lnet/minecraft/class_1297;)V
      official p Lbru;p(Lbru;)V
    • getPistonBehavior

      public PistonBehavior getPistonBehavior()
      Returns the behavior of the piston for this entity.

      This is PistonBehavior.NORMAL by default.

      invalid reference
      AreaEffectCloudEntity
      ,
      invalid reference
      MarkerEntity
      , and marker ArmorStandEntity return PistonBehavior.IGNORE, causing the piston to not affect the entity's position. Other piston behaviors are inapplicable to entities, and treated like PistonBehavior.NORMAL.
      Overrides:
      getPistonBehavior in class Entity
      Returns:
      the behavior of the piston for this entity
      Mappings:
      Namespace Name Mixin selector
      named getPistonBehavior Lnet/minecraft/entity/Entity;getPistonBehavior()Lnet/minecraft/block/piston/PistonBehavior;
      intermediary method_5657 Lnet/minecraft/class_1297;method_5657()Lnet/minecraft/class_3619;
      official k_ Lbru;k_()Lemz;
    • canAvoidTraps

      public boolean canAvoidTraps()
      Returns whether the entity cannot trigger pressure plates or tripwires.

      BatEntity is the only entity in vanilla that can avoid traps.

      Overrides:
      canAvoidTraps in class Entity
      Returns:
      whether the entity cannot trigger pressure plates or tripwires
      Mappings:
      Namespace Name Mixin selector
      named canAvoidTraps Lnet/minecraft/entity/Entity;canAvoidTraps()Z
      intermediary method_5696 Lnet/minecraft/class_1297;method_5696()Z
      official r_ Lbru;r_()Z
    • method_58639

      public void method_58639()
      Mappings:
      Namespace Name Mixin selector
      named method_58639 Lnet/minecraft/class_9461;method_58639()V
      intermediary method_58639 Lnet/minecraft/class_9461;method_58639()V
      official p Lbsv;p()V
    • method_58640

      public ItemStack method_58640()
      Mappings:
      Namespace Name Mixin selector
      named method_58640 Lnet/minecraft/class_9461;method_58640()Lnet/minecraft/item/ItemStack;
      intermediary method_58640 Lnet/minecraft/class_9461;method_58640()Lnet/minecraft/class_1799;
      official s Lbsv;s()Lcto;
    • method_58636

      private void method_58636(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      named method_58636 Lnet/minecraft/class_9461;method_58636(Lnet/minecraft/item/ItemStack;)V
      intermediary method_58636 Lnet/minecraft/class_9461;method_58636(Lnet/minecraft/class_1799;)V
      official a Lbsv;a(Lcto;)V