Package net.minecraft

Class class_9511

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

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

    • field_50502

      public static final int field_50502
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lcoz;b:I
      intermediary field_50502 Lnet/minecraft/class_9511;field_50502:I
      named field_50502 Lnet/minecraft/class_9511;field_50502:I
    • field_50503

      private static final TrackedData<Direction> field_50503
      Mappings:
      Namespace Name Mixin selector
      official c Lcoz;c:Lajy;
      intermediary field_50503 Lnet/minecraft/class_9511;field_50503:Lnet/minecraft/class_2940;
      named field_50503 Lnet/minecraft/class_9511;field_50503:Lnet/minecraft/entity/data/TrackedData;
    • field_50504

      private static final TrackedData<Float> field_50504
      Mappings:
      Namespace Name Mixin selector
      official d Lcoz;d:Lajy;
      intermediary field_50504 Lnet/minecraft/class_9511;field_50504:Lnet/minecraft/class_2940;
      named field_50504 Lnet/minecraft/class_9511;field_50504:Lnet/minecraft/entity/data/TrackedData;
    • field_50505

      private final class_9513 field_50505
      Mappings:
      Namespace Name Mixin selector
      official e Lcoz;e:Lcpa;
      intermediary field_50505 Lnet/minecraft/class_9511;field_50505:Lnet/minecraft/class_9513;
      named field_50505 Lnet/minecraft/class_9511;field_50505:Lnet/minecraft/class_9513;
    • field_50506

      @Nullable private @Nullable class_9517 field_50506
      Mappings:
      Namespace Name Mixin selector
      official f Lcoz;f:Lcpe;
      intermediary field_50506 Lnet/minecraft/class_9511;field_50506:Lnet/minecraft/class_9517;
      named field_50506 Lnet/minecraft/class_9511;field_50506:Lnet/minecraft/class_9517;
    • field_50507

      Mappings:
      Namespace Name Mixin selector
      official g Lcoz;g:Lcoz$a;
      intermediary field_50507 Lnet/minecraft/class_9511;field_50507:Lnet/minecraft/class_9511$class_9512;
      named field_50507 Lnet/minecraft/class_9511;field_50507:Lnet/minecraft/class_9511$class_9512;
    • field_50508

      private int field_50508
      Mappings:
      Namespace Name Mixin selector
      official h Lcoz;h:I
      intermediary field_50508 Lnet/minecraft/class_9511;field_50508:I
      named field_50508 Lnet/minecraft/class_9511;field_50508:I
  • Constructor Details

  • Method Details

    • method_58950

      public void method_58950(Direction direction, float float2)
      Mappings:
      Namespace Name Mixin selector
      official a Lcoz;a(Liw;F)V
      intermediary method_58950 Lnet/minecraft/class_9511;method_58950(Lnet/minecraft/class_2350;F)V
      named method_58950 Lnet/minecraft/class_9511;method_58950(Lnet/minecraft/util/math/Direction;F)V
    • method_58952

      public void method_58952()
      Mappings:
      Namespace Name Mixin selector
      official p Lcoz;p()V
      intermediary method_58952 Lnet/minecraft/class_9511;method_58952()V
      named method_58952 Lnet/minecraft/class_9511;method_58952()V
    • method_58953

      public class_9513 method_58953()
      Mappings:
      Namespace Name Mixin selector
      official r Lcoz;r()Lcpa;
      intermediary method_58953 Lnet/minecraft/class_9511;method_58953()Lnet/minecraft/class_9513;
      named method_58953 Lnet/minecraft/class_9511;method_58953()Lnet/minecraft/class_9513;
    • setPosition

      public void setPosition(double x, double y, double z)
      Sets the position and refreshes the bounding box.

      This should be called after creating an instance of non-living entities. For living entities, Entity.refreshPositionAndAngles(net.minecraft.util.math.BlockPos, float, float) should be used instead.

      Overrides:
      setPosition in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbrv;a_(DDD)V
      intermediary method_5814 Lnet/minecraft/class_1297;method_5814(DDD)V
      named setPosition Lnet/minecraft/entity/Entity;setPosition(DDD)V
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lbrv;l()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • method_58954

      private void method_58954()
      Mappings:
      Namespace Name Mixin selector
      official t Lcoz;t()V
      intermediary method_58954 Lnet/minecraft/class_9511;method_58954()V
      named method_58954 Lnet/minecraft/class_9511;method_58954()V
    • method_58955

      private void method_58955()
      Mappings:
      Namespace Name Mixin selector
      official u Lcoz;u()V
      intermediary method_58955 Lnet/minecraft/class_9511;method_58955()V
      named method_58955 Lnet/minecraft/class_9511;method_58955()V
    • method_58948

      private void method_58948(class_9517 class_9517, Direction direction, float float2)
      Mappings:
      Namespace Name Mixin selector
      official a Lcoz;a(Lcpe;Liw;F)V
      intermediary method_58948 Lnet/minecraft/class_9511;method_58948(Lnet/minecraft/class_9517;Lnet/minecraft/class_2350;F)V
      named method_58948 Lnet/minecraft/class_9511;method_58948(Lnet/minecraft/class_9517;Lnet/minecraft/util/math/Direction;F)V
    • method_58949

      private BlockPos method_58949(Vec3d vec3d, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lcoz;a(Lewu;Liw;)Lir;
      intermediary method_58949 Lnet/minecraft/class_9511;method_58949(Lnet/minecraft/class_243;Lnet/minecraft/class_2350;)Lnet/minecraft/class_2338;
      named method_58949 Lnet/minecraft/class_9511;method_58949(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/BlockPos;
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Specified by:
      initDataTracker in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbrv;a(Lakc$a;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)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
      official a Lbrv;a(Luk;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)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
      official b Lbrv;b(Luk;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • method_58956

      private float method_58956()
      Mappings:
      Namespace Name Mixin selector
      official w Lcoz;w()F
      intermediary method_58956 Lnet/minecraft/class_9511;method_58956()F
      named method_58956 Lnet/minecraft/class_9511;method_58956()F
    • method_58957

      private Direction method_58957()
      Mappings:
      Namespace Name Mixin selector
      official x Lcoz;x()Liw;
      intermediary method_58957 Lnet/minecraft/class_9511;method_58957()Lnet/minecraft/class_2350;
      named method_58957 Lnet/minecraft/class_9511;method_58957()Lnet/minecraft/util/math/Direction;
    • createSpawnPacket

      public Packet<ClientPlayPacketListener> createSpawnPacket()
      Returns a packet to notify the clients of the entity's spawning.
      Overrides:
      createSpawnPacket in class Entity
      Returns:
      a packet to notify the clients of the entity's spawning
      Mappings:
      Namespace Name Mixin selector
      official dq Lbrv;dq()Lzl;
      intermediary method_18002 Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;
      named createSpawnPacket Lnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/packet/Packet;
    • updateTrackedPositionAndAngles

      public void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps)
      Overrides:
      updateTrackedPositionAndAngles in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbrv;a(DDDFFI)V
      intermediary method_5759 Lnet/minecraft/class_1297;method_5759(DDDFFI)V
      named updateTrackedPositionAndAngles Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFI)V
    • getLerpTargetX

      public double getLerpTargetX()
      Overrides:
      getLerpTargetX in class Entity
      Mappings:
      Namespace Name Mixin selector
      official c_ Lbrv;c_()D
      intermediary method_53830 Lnet/minecraft/class_1297;method_53830()D
      named getLerpTargetX Lnet/minecraft/entity/Entity;getLerpTargetX()D
    • getLerpTargetY

      public double getLerpTargetY()
      Overrides:
      getLerpTargetY in class Entity
      Mappings:
      Namespace Name Mixin selector
      official d_ Lbrv;d_()D
      intermediary method_53827 Lnet/minecraft/class_1297;method_53827()D
      named getLerpTargetY Lnet/minecraft/entity/Entity;getLerpTargetY()D
    • getLerpTargetZ

      public double getLerpTargetZ()
      Overrides:
      getLerpTargetZ in class Entity
      Mappings:
      Namespace Name Mixin selector
      official M_ Lbrv;M_()D
      intermediary method_53828 Lnet/minecraft/class_1297;method_53828()D
      named getLerpTargetZ Lnet/minecraft/entity/Entity;getLerpTargetZ()D