Class ThrownItemEntity

All Implemented Interfaces:
EntityLike, FlyingItemEntity, CommandOutput, Nameable
Direct Known Subclasses:
EggEntity, EnderPearlEntity, ExperienceBottleEntity, PotionEntity, SnowballEntity

@EnvironmentInterfaces(@EnvironmentInterface(value=CLIENT,itf=FlyingItemEntity.class))
public abstract class ThrownItemEntity
extends ThrownEntity
implements FlyingItemEntity
Mappings:
Namespace Name
official bih
intermediary net/minecraft/class_3857
named net/minecraft/entity/projectile/thrown/ThrownItemEntity
  • Field Details

    • ITEM

      private static final TrackedData<ItemStack> ITEM
      Mappings:
      Namespace Name Mixin selector
      official b Lbih;b:Lvk;
      intermediary field_17082 Lnet/minecraft/class_3857;field_17082:Lnet/minecraft/class_2940;
      named ITEM Lnet/minecraft/entity/projectile/thrown/ThrownItemEntity;ITEM:Lnet/minecraft/entity/data/TrackedData;
  • Constructor Details

    • ThrownItemEntity

      public ThrownItemEntity​(EntityType<? extends ThrownItemEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laqv;<init>(Laqz;Lbtv;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
    • ThrownItemEntity

      public ThrownItemEntity​(EntityType<? extends ThrownItemEntity> type, double x, double y, double z, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbii;<init>(Laqz;DDDLbtv;)V
      intermediary <init> Lnet/minecraft/class_1682;<init>(Lnet/minecraft/class_1299;DDDLnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/projectile/thrown/ThrownEntity;<init>(Lnet/minecraft/entity/EntityType;DDDLnet/minecraft/world/World;)V
    • ThrownItemEntity

      public ThrownItemEntity​(EntityType<? extends ThrownItemEntity> type, LivingEntity owner, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbii;<init>(Laqz;Lari;Lbtv;)V
      intermediary <init> Lnet/minecraft/class_1682;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1309;Lnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/projectile/thrown/ThrownEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/world/World;)V
  • Method Details

    • setItem

      public void setItem​(ItemStack item)
      Mappings:
      Namespace Name Mixin selector
      official b Lbih;b(Lbnv;)V
      intermediary method_16940 Lnet/minecraft/class_3857;method_16940(Lnet/minecraft/class_1799;)V
      named setItem Lnet/minecraft/entity/projectile/thrown/ThrownItemEntity;setItem(Lnet/minecraft/item/ItemStack;)V
    • getDefaultItem

      protected abstract Item getDefaultItem()
      Mappings:
      Namespace Name Mixin selector
      official h Lbih;h()Lbnr;
      intermediary method_16942 Lnet/minecraft/class_3857;method_16942()Lnet/minecraft/class_1792;
      named getDefaultItem Lnet/minecraft/entity/projectile/thrown/ThrownItemEntity;getDefaultItem()Lnet/minecraft/item/Item;
    • getItem

      protected ItemStack getItem()
      Mappings:
      Namespace Name Mixin selector
      official i Lbih;i()Lbnv;
      intermediary method_16943 Lnet/minecraft/class_3857;method_16943()Lnet/minecraft/class_1799;
      named getItem Lnet/minecraft/entity/projectile/thrown/ThrownItemEntity;getItem()Lnet/minecraft/item/ItemStack;
    • getStack

      public ItemStack getStack()
      Specified by:
      getStack in interface FlyingItemEntity
      Mappings:
      Namespace Name Mixin selector
      official g Lbhy;g()Lbnv;
      intermediary method_7495 Lnet/minecraft/class_3856;method_7495()Lnet/minecraft/class_1799;
      named getStack Lnet/minecraft/entity/FlyingItemEntity;getStack()Lnet/minecraft/item/ItemStack;
    • initDataTracker

      protected void initDataTracker()
      Specified by:
      initDataTracker in class Entity
      Mappings:
      Namespace Name Mixin selector
      official e Laqv;e()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • writeCustomDataToTag

      public void writeCustomDataToTag​(CompoundTag tag)
      Overrides:
      writeCustomDataToTag in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official b Laqv;b(Lmq;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToTag Lnet/minecraft/entity/Entity;writeCustomDataToTag(Lnet/minecraft/nbt/CompoundTag;)V
    • readCustomDataFromTag

      public void readCustomDataFromTag​(CompoundTag tag)
      Overrides:
      readCustomDataFromTag in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official a Laqv;a(Lmq;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromTag Lnet/minecraft/entity/Entity;readCustomDataFromTag(Lnet/minecraft/nbt/CompoundTag;)V