Class ThrowableEntity

java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.thrown.ThrowableEntity
All Implemented Interfaces:
CommandSource, Projectile
Direct Known Subclasses:
EggEntity, EnderPearlEntity, ExperienceBottleEntity, PotionEntity, SnowballEntity

public abstract class ThrowableEntity extends Entity implements Projectile
Mappings:
Namespace Name
official ahr
intermediary net/minecraft/class_996
named net/minecraft/entity/thrown/ThrowableEntity
  • Field Details

    • blockX

      private int blockX
      Mappings:
      Namespace Name Mixin selector
      official c Lahr;c:I
      intermediary field_4074 Lnet/minecraft/class_996;field_4074:I
      named blockX Lnet/minecraft/entity/thrown/ThrowableEntity;blockX:I
    • blockY

      private int blockY
      Mappings:
      Namespace Name Mixin selector
      official d Lahr;d:I
      intermediary field_4075 Lnet/minecraft/class_996;field_4075:I
      named blockY Lnet/minecraft/entity/thrown/ThrowableEntity;blockY:I
    • blockZ

      private int blockZ
      Mappings:
      Namespace Name Mixin selector
      official e Lahr;e:I
      intermediary field_4076 Lnet/minecraft/class_996;field_4076:I
      named blockZ Lnet/minecraft/entity/thrown/ThrowableEntity;blockZ:I
    • inBlock

      private Block inBlock
      Mappings:
      Namespace Name Mixin selector
      official f Lahr;f:Latr;
      intermediary field_9143 Lnet/minecraft/class_996;field_9143:Lnet/minecraft/class_197;
      named inBlock Lnet/minecraft/entity/thrown/ThrowableEntity;inBlock:Lnet/minecraft/block/Block;
    • inGround

      protected boolean inGround
      Mappings:
      Namespace Name Mixin selector
      official a Lahr;a:Z
      intermediary field_4071 Lnet/minecraft/class_996;field_4071:Z
      named inGround Lnet/minecraft/entity/thrown/ThrowableEntity;inGround:Z
    • shake

      public int shake
      Mappings:
      Namespace Name Mixin selector
      official b Lahr;b:I
      intermediary field_4072 Lnet/minecraft/class_996;field_4072:I
      named shake Lnet/minecraft/entity/thrown/ThrowableEntity;shake:I
    • field_6932

      private LivingEntity field_6932
      Mappings:
      Namespace Name Mixin selector
      official g Lahr;g:Lxm;
      intermediary field_6932 Lnet/minecraft/class_996;field_6932:Lnet/minecraft/class_1699;
      named field_6932 Lnet/minecraft/entity/thrown/ThrowableEntity;field_6932:Lnet/minecraft/entity/LivingEntity;
    • ownerName

      private String ownerName
      Mappings:
      Namespace Name Mixin selector
      official h Lahr;h:Ljava/lang/String;
      intermediary field_5404 Lnet/minecraft/class_996;field_5404:Ljava/lang/String;
      named ownerName Lnet/minecraft/entity/thrown/ThrowableEntity;ownerName:Ljava/lang/String;
    • inGroundTime

      private int inGroundTime
      Mappings:
      Namespace Name Mixin selector
      official i Lahr;i:I
      intermediary field_4078 Lnet/minecraft/class_996;field_4078:I
      named inGroundTime Lnet/minecraft/entity/thrown/ThrowableEntity;inGroundTime:I
    • field_4079

      private int field_4079
      Mappings:
      Namespace Name Mixin selector
      official ap Lahr;ap:I
      intermediary field_4079 Lnet/minecraft/class_996;field_4079:I
      named field_4079 Lnet/minecraft/entity/thrown/ThrowableEntity;field_4079:I
  • Constructor Details

    • ThrowableEntity

      public ThrowableEntity(World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lwv;<init>(Laqu;)V
      intermediary <init> Lnet/minecraft/class_864;<init>(Lnet/minecraft/class_1150;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
    • ThrowableEntity

      public ThrowableEntity(World world, LivingEntity owner)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lahr;<init>(Laqu;Lxm;)V
      intermediary <init> Lnet/minecraft/class_996;<init>(Lnet/minecraft/class_1150;Lnet/minecraft/class_1699;)V
      named <init> Lnet/minecraft/entity/thrown/ThrowableEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;)V
    • ThrowableEntity

      public ThrowableEntity(World world, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lahr;<init>(Laqu;DDD)V
      intermediary <init> Lnet/minecraft/class_996;<init>(Lnet/minecraft/class_1150;DDD)V
      named <init> Lnet/minecraft/entity/thrown/ThrowableEntity;<init>(Lnet/minecraft/world/World;DDD)V
  • Method Details

    • initDataTracker

      protected void initDataTracker()
      Specified by:
      initDataTracker in class Entity
      Mappings:
      Namespace Name Mixin selector
      official h Lwv;h()V
      intermediary method_2484 Lnet/minecraft/class_864;method_2484()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • shouldRender

      @Environment(CLIENT) public boolean shouldRender(double distance)
      Overrides:
      shouldRender in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lwv;a(D)Z
      intermediary method_2486 Lnet/minecraft/class_864;method_2486(D)Z
      named shouldRender Lnet/minecraft/entity/Entity;shouldRender(D)Z
    • method_3234

      protected float method_3234()
      Mappings:
      Namespace Name Mixin selector
      official j Lahr;j()F
      intermediary method_3234 Lnet/minecraft/class_996;method_3234()F
      named method_3234 Lnet/minecraft/entity/thrown/ThrowableEntity;method_3234()F
    • method_3235

      protected float method_3235()
      Mappings:
      Namespace Name Mixin selector
      official l Lahr;l()F
      intermediary method_3235 Lnet/minecraft/class_996;method_3235()F
      named method_3235 Lnet/minecraft/entity/thrown/ThrowableEntity;method_3235()F
    • setVelocity

      public void setVelocity(double x, double y, double z, float speed, float divergence)
      Specified by:
      setVelocity in interface Projectile
      Mappings:
      Namespace Name Mixin selector
      official c Laho;c(DDDFF)V
      intermediary method_3233 Lnet/minecraft/class_1417;method_3233(DDDFF)V
      named setVelocity Lnet/minecraft/entity/projectile/Projectile;setVelocity(DDDFF)V
    • setVelocityClient

      @Environment(CLIENT) public void setVelocityClient(double x, double y, double z)
      Overrides:
      setVelocityClient in class Entity
      Mappings:
      Namespace Name Mixin selector
      official i Lwv;i(DDD)V
      intermediary method_2556 Lnet/minecraft/class_864;method_2556(DDD)V
      named setVelocityClient Lnet/minecraft/entity/Entity;setVelocityClient(DDD)V
    • tick

      public void tick()
      Overrides:
      tick in class Entity
      Mappings:
      Namespace Name Mixin selector
      official s_ Lwv;s_()V
      intermediary method_2558 Lnet/minecraft/class_864;method_2558()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • getGravity

      protected float getGravity()
      Mappings:
      Namespace Name Mixin selector
      official m Lahr;m()F
      intermediary method_3236 Lnet/minecraft/class_996;method_3236()F
      named getGravity Lnet/minecraft/entity/thrown/ThrowableEntity;getGravity()F
    • onCollision

      protected abstract void onCollision(BlockHitResult result)
      Mappings:
      Namespace Name Mixin selector
      official a Lahr;a(Lbru;)V
      intermediary method_3232 Lnet/minecraft/class_996;method_3232(Lnet/minecraft/class_234;)V
      named onCollision Lnet/minecraft/entity/thrown/ThrowableEntity;onCollision(Lnet/minecraft/util/hit/BlockHitResult;)V
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Specified by:
      writeCustomDataToNbt in class Entity
      Mappings:
      Namespace Name Mixin selector
      official b Lwv;b(Lfn;)V
      intermediary method_2528 Lnet/minecraft/class_864;method_2528(Lnet/minecraft/class_322;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Specified by:
      readCustomDataFromNbt in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lwv;a(Lfn;)V
      intermediary method_2498 Lnet/minecraft/class_864;method_2498(Lnet/minecraft/class_322;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • getOwner

      public LivingEntity getOwner()
      Mappings:
      Namespace Name Mixin selector
      official n Lahr;n()Lxm;
      intermediary method_4585 Lnet/minecraft/class_996;method_4585()Lnet/minecraft/class_1699;
      named getOwner Lnet/minecraft/entity/thrown/ThrowableEntity;getOwner()Lnet/minecraft/entity/LivingEntity;