Package net.minecraft

Class class_9508

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

public class class_9508 extends ProjectileEntity
Mappings:
Namespace Name
official cmq
intermediary net/minecraft/class_9508
named net/minecraft/class_9508
  • Field Details

    • field_50485

      public static final TrackedData<Boolean> field_50485
      Mappings:
      Namespace Name Mixin selector
      official b Lcmq;b:Lajy;
      intermediary field_50485 Lnet/minecraft/class_9508;field_50485:Lnet/minecraft/class_2940;
      named field_50485 Lnet/minecraft/class_9508;field_50485:Lnet/minecraft/entity/data/TrackedData;
    • field_50486

      public static final TrackedData<Float> field_50486
      Mappings:
      Namespace Name Mixin selector
      official c Lcmq;c:Lajy;
      intermediary field_50486 Lnet/minecraft/class_9508;field_50486:Lnet/minecraft/class_2940;
      named field_50486 Lnet/minecraft/class_9508;field_50486:Lnet/minecraft/entity/data/TrackedData;
    • field_50487

      private static final float field_50487
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lcmq;d:F
      intermediary field_50487 Lnet/minecraft/class_9508;field_50487:F
      named field_50487 Lnet/minecraft/class_9508;field_50487:F
    • field_50488

      private static final double field_50488
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lcmq;e:D
      intermediary field_50488 Lnet/minecraft/class_9508;field_50488:D
      named field_50488 Lnet/minecraft/class_9508;field_50488:D
  • Constructor Details

  • Method Details

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

      public boolean shouldRender(double distance)
      Overrides:
      shouldRender in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbrv;a(D)Z
      intermediary method_5640 Lnet/minecraft/class_1297;method_5640(D)Z
      named shouldRender Lnet/minecraft/entity/Entity;shouldRender(D)Z
    • 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
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class ProjectileEntity
      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_58938

      private boolean method_58938(PlayerEntity playerEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmq;a(Lcly;)Z
      intermediary method_58938 Lnet/minecraft/class_9508;method_58938(Lnet/minecraft/class_1657;)Z
      named method_58938 Lnet/minecraft/class_9508;method_58938(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • canHit

      protected boolean canHit(Entity entity)
      Overrides:
      canHit in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lcms;b(Lbrv;)Z
      intermediary method_26958 Lnet/minecraft/class_1676;method_26958(Lnet/minecraft/class_1297;)Z
      named canHit Lnet/minecraft/entity/projectile/ProjectileEntity;canHit(Lnet/minecraft/entity/Entity;)Z
    • onBlockHit

      protected void onBlockHit(BlockHitResult blockHitResult)
      Overrides:
      onBlockHit in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcms;a(Lewq;)V
      intermediary method_24920 Lnet/minecraft/class_1676;method_24920(Lnet/minecraft/class_3965;)V
      named onBlockHit Lnet/minecraft/entity/projectile/ProjectileEntity;onBlockHit(Lnet/minecraft/util/hit/BlockHitResult;)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 ProjectileEntity
      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
    • 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 ProjectileEntity
      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
    • method_58940

      private void method_58940(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmq;a(Z)V
      intermediary method_58940 Lnet/minecraft/class_9508;method_58940(Z)V
      named method_58940 Lnet/minecraft/class_9508;method_58940(Z)V
    • method_58937

      private void method_58937(float float2)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmq;a(F)V
      intermediary method_58937 Lnet/minecraft/class_9508;method_58937(F)V
      named method_58937 Lnet/minecraft/class_9508;method_58937(F)V
    • method_58941

      public boolean method_58941()
      Mappings:
      Namespace Name Mixin selector
      official p Lcmq;p()Z
      intermediary method_58941 Lnet/minecraft/class_9508;method_58941()Z
      named method_58941 Lnet/minecraft/class_9508;method_58941()Z
    • method_58942

      public float method_58942()
      Mappings:
      Namespace Name Mixin selector
      official r Lcmq;r()F
      intermediary method_58942 Lnet/minecraft/class_9508;method_58942()F
      named method_58942 Lnet/minecraft/class_9508;method_58942()F
    • getMoveEffect

      protected Entity.MoveEffect getMoveEffect()
      Returns the possible effect(s) of an entity moving.
      Overrides:
      getMoveEffect in class Entity
      Mappings:
      Namespace Name Mixin selector
      official bf Lbrv;bf()Lbrv$c;
      intermediary method_33570 Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;
      named getMoveEffect Lnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
    • remove

      public void remove(Entity.RemovalReason reason)
      Removes the entity.
      Overrides:
      remove in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbrv;a(Lbrv$d;)V
      intermediary method_5650 Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)V
      named remove Lnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)V
    • onRemoved

      public void onRemoved()
      Called on the client side when the entity is removed.
      Overrides:
      onRemoved in class Entity
      Mappings:
      Namespace Name Mixin selector
      official aq Lbrv;aq()V
      intermediary method_36209 Lnet/minecraft/class_1297;method_36209()V
      named onRemoved Lnet/minecraft/entity/Entity;onRemoved()V
    • setOwner

      public void setOwner(@Nullable @Nullable Entity entity)
      Overrides:
      setOwner in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lcms;c(Lbrv;)V
      intermediary method_7432 Lnet/minecraft/class_1676;method_7432(Lnet/minecraft/class_1297;)V
      named setOwner Lnet/minecraft/entity/projectile/ProjectileEntity;setOwner(Lnet/minecraft/entity/Entity;)V
    • method_58939

      private void method_58939(@Nullable @Nullable class_9508 class_9508)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmq;a(Lcmq;)V
      intermediary method_58939 Lnet/minecraft/class_9508;method_58939(Lnet/minecraft/class_9508;)V
      named method_58939 Lnet/minecraft/class_9508;method_58939(Lnet/minecraft/class_9508;)V
    • method_58943

      @Nullable public @Nullable PlayerEntity method_58943()
      Mappings:
      Namespace Name Mixin selector
      official u Lcmq;u()Lcly;
      intermediary method_58943 Lnet/minecraft/class_9508;method_58943()Lnet/minecraft/class_1657;
      named method_58943 Lnet/minecraft/class_9508;method_58943()Lnet/minecraft/entity/player/PlayerEntity;
    • canUsePortals

      public boolean canUsePortals()
      Returns whether the entity can use nether portals and end portals.

      EnderDragonEntity, WitherEntity, and FishingBobberEntity cannot use portals.

      Overrides:
      canUsePortals in class Entity
      Returns:
      whether the entity can use nether portals and end portals
      Mappings:
      Namespace Name Mixin selector
      official cB Lbrv;cB()Z
      intermediary method_5822 Lnet/minecraft/class_1297;method_5822()Z
      named canUsePortals Lnet/minecraft/entity/Entity;canUsePortals()Z
    • createSpawnPacket

      public Packet<ClientPlayPacketListener> createSpawnPacket()
      Returns a packet to notify the clients of the entity's spawning.
      Overrides:
      createSpawnPacket in class ProjectileEntity
      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;
    • onSpawnPacket

      public void onSpawnPacket(EntitySpawnS2CPacket packet)
      Called on the client when the entity receives a spawn packet.

      This sets the entity's position, angles, ID, and UUID. Subclasses can override this to initialize additional fields.

      Overrides:
      onSpawnPacket in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbrv;a(Labx;)V
      intermediary method_31471 Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)V
      named onSpawnPacket Lnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V