Class ItemEntity

java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.ItemEntity
All Implemented Interfaces:
EntityLike, CommandOutput, Nameable

public class ItemEntity
extends Entity
Mappings:
Namespace Name
official bek
intermediary net/minecraft/class_1542
named net/minecraft/entity/ItemEntity
  • Field Details

    • STACK

      private static final TrackedData<ItemStack> STACK
      Mappings:
      Namespace Name Mixin selector
      official c Lbek;c:Lvk;
      intermediary field_7199 Lnet/minecraft/class_1542;field_7199:Lnet/minecraft/class_2940;
      named STACK Lnet/minecraft/entity/ItemEntity;STACK:Lnet/minecraft/entity/data/TrackedData;
    • age

      private int age
      Mappings:
      Namespace Name Mixin selector
      official d Lbek;d:I
      intermediary field_7204 Lnet/minecraft/class_1542;field_7204:I
      named age Lnet/minecraft/entity/ItemEntity;age:I
    • pickupDelay

      private int pickupDelay
      Mappings:
      Namespace Name Mixin selector
      official e Lbek;e:I
      intermediary field_7202 Lnet/minecraft/class_1542;field_7202:I
      named pickupDelay Lnet/minecraft/entity/ItemEntity;pickupDelay:I
    • health

      private int health
      Mappings:
      Namespace Name Mixin selector
      official f Lbek;f:I
      intermediary field_7201 Lnet/minecraft/class_1542;field_7201:I
      named health Lnet/minecraft/entity/ItemEntity;health:I
    • thrower

      private UUID thrower
      Mappings:
      Namespace Name Mixin selector
      official g Lbek;g:Ljava/util/UUID;
      intermediary field_7200 Lnet/minecraft/class_1542;field_7200:Ljava/util/UUID;
      named thrower Lnet/minecraft/entity/ItemEntity;thrower:Ljava/util/UUID;
    • owner

      private UUID owner
      Mappings:
      Namespace Name Mixin selector
      official ae Lbek;ae:Ljava/util/UUID;
      intermediary field_7205 Lnet/minecraft/class_1542;field_7205:Ljava/util/UUID;
      named owner Lnet/minecraft/entity/ItemEntity;owner:Ljava/util/UUID;
    • hoverHeight

      public final float hoverHeight
      Mappings:
      Namespace Name Mixin selector
      official b Lbek;b:F
      intermediary field_7203 Lnet/minecraft/class_1542;field_7203:F
      named hoverHeight Lnet/minecraft/entity/ItemEntity;hoverHeight:F
  • Constructor Details

    • ItemEntity

      public ItemEntity​(EntityType<? extends ItemEntity> 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
    • ItemEntity

      public ItemEntity​(World world, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbek;<init>(Lbtv;DDD)V
      intermediary <init> Lnet/minecraft/class_1542;<init>(Lnet/minecraft/class_1937;DDD)V
      named <init> Lnet/minecraft/entity/ItemEntity;<init>(Lnet/minecraft/world/World;DDD)V
    • ItemEntity

      public ItemEntity​(World world, double x, double y, double z, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbek;<init>(Lbtv;DDDLbnv;)V
      intermediary <init> Lnet/minecraft/class_1542;<init>(Lnet/minecraft/class_1937;DDDLnet/minecraft/class_1799;)V
      named <init> Lnet/minecraft/entity/ItemEntity;<init>(Lnet/minecraft/world/World;DDDLnet/minecraft/item/ItemStack;)V
    • ItemEntity

      @Environment(CLIENT) private ItemEntity​(ItemEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbek;<init>(Lbek;)V
      intermediary <init> Lnet/minecraft/class_1542;<init>(Lnet/minecraft/class_1542;)V
      named <init> Lnet/minecraft/entity/ItemEntity;<init>(Lnet/minecraft/entity/ItemEntity;)V
  • Method Details

    • occludeVibrationSignals

      public boolean occludeVibrationSignals()
      Overrides:
      occludeVibrationSignals in class Entity
      Mappings:
      Namespace Name Mixin selector
      official aF Laqv;aF()Z
      intermediary method_33189 Lnet/minecraft/class_1297;method_33189()Z
      named occludeVibrationSignals Lnet/minecraft/entity/Entity;occludeVibrationSignals()Z
    • method_33570

      protected Entity.class_5799 method_33570()
      Overrides:
      method_33570 in class Entity
      Mappings:
      Namespace Name Mixin selector
      official aE Laqv;aE()Laqv$b;
      intermediary method_33570 Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;
      named method_33570 Lnet/minecraft/entity/Entity;method_33570()Lnet/minecraft/entity/Entity$class_5799;
    • 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
    • tick

      public void tick()
      Overrides:
      tick in class Entity
      Mappings:
      Namespace Name Mixin selector
      official j Laqv;j()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • applyWaterBuoyancy

      private void applyWaterBuoyancy()
      Mappings:
      Namespace Name Mixin selector
      official v Lbek;v()V
      intermediary method_6974 Lnet/minecraft/class_1542;method_6974()V
      named applyWaterBuoyancy Lnet/minecraft/entity/ItemEntity;applyWaterBuoyancy()V
    • applyLavaBuoyancy

      private void applyLavaBuoyancy()
      Mappings:
      Namespace Name Mixin selector
      official w Lbek;w()V
      intermediary method_24348 Lnet/minecraft/class_1542;method_24348()V
      named applyLavaBuoyancy Lnet/minecraft/entity/ItemEntity;applyLavaBuoyancy()V
    • tryMerge

      private void tryMerge()
      Mappings:
      Namespace Name Mixin selector
      official x Lbek;x()V
      intermediary method_6973 Lnet/minecraft/class_1542;method_6973()V
      named tryMerge Lnet/minecraft/entity/ItemEntity;tryMerge()V
    • canMerge

      private boolean canMerge()
      Mappings:
      Namespace Name Mixin selector
      official z Lbek;z()Z
      intermediary method_20397 Lnet/minecraft/class_1542;method_20397()Z
      named canMerge Lnet/minecraft/entity/ItemEntity;canMerge()Z
    • tryMerge

      private void tryMerge​(ItemEntity other)
      Mappings:
      Namespace Name Mixin selector
      official a Lbek;a(Lbek;)V
      intermediary method_6972 Lnet/minecraft/class_1542;method_6972(Lnet/minecraft/class_1542;)V
      named tryMerge Lnet/minecraft/entity/ItemEntity;tryMerge(Lnet/minecraft/entity/ItemEntity;)V
    • canMerge

      public static boolean canMerge​(ItemStack stack1, ItemStack stack2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbek;a(Lbnv;Lbnv;)Z
      intermediary method_24017 Lnet/minecraft/class_1542;method_24017(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
      named canMerge Lnet/minecraft/entity/ItemEntity;canMerge(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
    • merge

      public static ItemStack merge​(ItemStack stack1, ItemStack stack2, int maxCount)
      Mappings:
      Namespace Name Mixin selector
      official a Lbek;a(Lbnv;Lbnv;I)Lbnv;
      intermediary method_24018 Lnet/minecraft/class_1542;method_24018(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;I)Lnet/minecraft/class_1799;
      named merge Lnet/minecraft/entity/ItemEntity;merge(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;I)Lnet/minecraft/item/ItemStack;
    • merge

      private static void merge​(ItemEntity targetEntity, ItemStack stack1, ItemStack stack2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbek;a(Lbek;Lbnv;Lbnv;)V
      intermediary method_24016 Lnet/minecraft/class_1542;method_24016(Lnet/minecraft/class_1542;Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)V
      named merge Lnet/minecraft/entity/ItemEntity;merge(Lnet/minecraft/entity/ItemEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)V
    • merge

      private static void merge​(ItemEntity targetEntity, ItemStack targetStack, ItemEntity sourceEntity, ItemStack sourceStack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbek;a(Lbek;Lbnv;Lbek;Lbnv;)V
      intermediary method_18006 Lnet/minecraft/class_1542;method_18006(Lnet/minecraft/class_1542;Lnet/minecraft/class_1799;Lnet/minecraft/class_1542;Lnet/minecraft/class_1799;)V
      named merge Lnet/minecraft/entity/ItemEntity;merge(Lnet/minecraft/entity/ItemEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/ItemEntity;Lnet/minecraft/item/ItemStack;)V
    • isFireImmune

      public boolean isFireImmune()
      Overrides:
      isFireImmune in class Entity
      Mappings:
      Namespace Name Mixin selector
      official aG Laqv;aG()Z
      intermediary method_5753 Lnet/minecraft/class_1297;method_5753()Z
      named isFireImmune Lnet/minecraft/entity/Entity;isFireImmune()Z
    • damage

      public boolean damage​(DamageSource source, float amount)
      Overrides:
      damage in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Laqv;a(Laqf;F)Z
      intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
    • writeCustomDataToTag

      public void writeCustomDataToTag​(CompoundTag tag)
      Specified by:
      writeCustomDataToTag in class Entity
      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)
      Specified by:
      readCustomDataFromTag in class Entity
      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
    • onPlayerCollision

      public void onPlayerCollision​(PlayerEntity player)
      Overrides:
      onPlayerCollision in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a_ Laqv;a_(Lbhl;)V
      intermediary method_5694 Lnet/minecraft/class_1297;method_5694(Lnet/minecraft/class_1657;)V
      named onPlayerCollision Lnet/minecraft/entity/Entity;onPlayerCollision(Lnet/minecraft/entity/player/PlayerEntity;)V
    • getName

      public Text getName()
      Specified by:
      getName in interface Nameable
      Overrides:
      getName in class Entity
      Mappings:
      Namespace Name Mixin selector
      official R Lapu;R()Loi;
      intermediary method_5477 Lnet/minecraft/class_1275;method_5477()Lnet/minecraft/class_2561;
      named getName Lnet/minecraft/util/Nameable;getName()Lnet/minecraft/text/Text;
    • isAttackable

      public boolean isAttackable()
      Overrides:
      isAttackable in class Entity
      Mappings:
      Namespace Name Mixin selector
      official bV Laqv;bV()Z
      intermediary method_5732 Lnet/minecraft/class_1297;method_5732()Z
      named isAttackable Lnet/minecraft/entity/Entity;isAttackable()Z
    • moveToWorld

      @Nullable public Entity moveToWorld​(ServerWorld destination)
      Moves this entity to another world.

      Note all entities except server player entities are completely recreated at the destination.

      Overrides:
      moveToWorld in class Entity
      Returns:
      the entity in the other world
      Mappings:
      Namespace Name Mixin selector
      official b Laqv;b(Laav;)Laqv;
      intermediary method_5731 Lnet/minecraft/class_1297;method_5731(Lnet/minecraft/class_3218;)Lnet/minecraft/class_1297;
      named moveToWorld Lnet/minecraft/entity/Entity;moveToWorld(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/entity/Entity;
    • getStack

      public ItemStack getStack()
      Mappings:
      Namespace Name Mixin selector
      official g Lbek;g()Lbnv;
      intermediary method_6983 Lnet/minecraft/class_1542;method_6983()Lnet/minecraft/class_1799;
      named getStack Lnet/minecraft/entity/ItemEntity;getStack()Lnet/minecraft/item/ItemStack;
    • setStack

      public void setStack​(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official b Lbek;b(Lbnv;)V
      intermediary method_6979 Lnet/minecraft/class_1542;method_6979(Lnet/minecraft/class_1799;)V
      named setStack Lnet/minecraft/entity/ItemEntity;setStack(Lnet/minecraft/item/ItemStack;)V
    • onTrackedDataSet

      public void onTrackedDataSet​(TrackedData<?> data)
      Overrides:
      onTrackedDataSet in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Laqv;a(Lvk;)V
      intermediary method_5674 Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
      named onTrackedDataSet Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
    • getOwner

      @Nullable public UUID getOwner()
      Mappings:
      Namespace Name Mixin selector
      official h Lbek;h()Ljava/util/UUID;
      intermediary method_6986 Lnet/minecraft/class_1542;method_6986()Ljava/util/UUID;
      named getOwner Lnet/minecraft/entity/ItemEntity;getOwner()Ljava/util/UUID;
    • setOwner

      public void setOwner​(@Nullable UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      official b Lbek;b(Ljava/util/UUID;)V
      intermediary method_6984 Lnet/minecraft/class_1542;method_6984(Ljava/util/UUID;)V
      named setOwner Lnet/minecraft/entity/ItemEntity;setOwner(Ljava/util/UUID;)V
    • getThrower

      @Nullable public UUID getThrower()
      Mappings:
      Namespace Name Mixin selector
      official i Lbek;i()Ljava/util/UUID;
      intermediary method_6978 Lnet/minecraft/class_1542;method_6978()Ljava/util/UUID;
      named getThrower Lnet/minecraft/entity/ItemEntity;getThrower()Ljava/util/UUID;
    • setThrower

      public void setThrower​(@Nullable UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      official c Lbek;c(Ljava/util/UUID;)V
      intermediary method_6981 Lnet/minecraft/class_1542;method_6981(Ljava/util/UUID;)V
      named setThrower Lnet/minecraft/entity/ItemEntity;setThrower(Ljava/util/UUID;)V
    • getAge

      @Environment(CLIENT) public int getAge()
      Mappings:
      Namespace Name Mixin selector
      official k Lbek;k()I
      intermediary method_6985 Lnet/minecraft/class_1542;method_6985()I
      named getAge Lnet/minecraft/entity/ItemEntity;getAge()I
    • setToDefaultPickupDelay

      public void setToDefaultPickupDelay()
      Mappings:
      Namespace Name Mixin selector
      official m Lbek;m()V
      intermediary method_6988 Lnet/minecraft/class_1542;method_6988()V
      named setToDefaultPickupDelay Lnet/minecraft/entity/ItemEntity;setToDefaultPickupDelay()V
    • resetPickupDelay

      public void resetPickupDelay()
      Mappings:
      Namespace Name Mixin selector
      official n Lbek;n()V
      intermediary method_6975 Lnet/minecraft/class_1542;method_6975()V
      named resetPickupDelay Lnet/minecraft/entity/ItemEntity;resetPickupDelay()V
    • setPickupDelayInfinite

      public void setPickupDelayInfinite()
      Mappings:
      Namespace Name Mixin selector
      official o Lbek;o()V
      intermediary method_6989 Lnet/minecraft/class_1542;method_6989()V
      named setPickupDelayInfinite Lnet/minecraft/entity/ItemEntity;setPickupDelayInfinite()V
    • setPickupDelay

      public void setPickupDelay​(int pickupDelay)
      Mappings:
      Namespace Name Mixin selector
      official a Lbek;a(I)V
      intermediary method_6982 Lnet/minecraft/class_1542;method_6982(I)V
      named setPickupDelay Lnet/minecraft/entity/ItemEntity;setPickupDelay(I)V
    • cannotPickup

      public boolean cannotPickup()
      Mappings:
      Namespace Name Mixin selector
      official p Lbek;p()Z
      intermediary method_6977 Lnet/minecraft/class_1542;method_6977()Z
      named cannotPickup Lnet/minecraft/entity/ItemEntity;cannotPickup()Z
    • setCovetedItem

      public void setCovetedItem()
      Mappings:
      Namespace Name Mixin selector
      official r Lbek;r()V
      intermediary method_6976 Lnet/minecraft/class_1542;method_6976()V
      named setCovetedItem Lnet/minecraft/entity/ItemEntity;setCovetedItem()V
    • setDespawnImmediately

      public void setDespawnImmediately()
      Mappings:
      Namespace Name Mixin selector
      official s Lbek;s()V
      intermediary method_6987 Lnet/minecraft/class_1542;method_6987()V
      named setDespawnImmediately Lnet/minecraft/entity/ItemEntity;setDespawnImmediately()V
    • method_27314

      @Environment(CLIENT) public float method_27314​(float float2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbek;a(F)F
      intermediary method_27314 Lnet/minecraft/class_1542;method_27314(F)F
      named method_27314 Lnet/minecraft/entity/ItemEntity;method_27314(F)F
    • createSpawnPacket

      public Packet<?> createSpawnPacket()
      Specified by:
      createSpawnPacket in class Entity
      Mappings:
      Namespace Name Mixin selector
      official P Laqv;P()Lpa;
      intermediary method_18002 Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;
      named createSpawnPacket Lnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/Packet;
    • copy

      @Environment(CLIENT) public ItemEntity copy()
      Mappings:
      Namespace Name Mixin selector
      official u Lbek;u()Lbek;
      intermediary method_29271 Lnet/minecraft/class_1542;method_29271()Lnet/minecraft/class_1542;
      named copy Lnet/minecraft/entity/ItemEntity;copy()Lnet/minecraft/entity/ItemEntity;
    • getSoundCategory

      public SoundCategory getSoundCategory()
      Overrides:
      getSoundCategory in class Entity
      Mappings:
      Namespace Name Mixin selector
      official cE Laqv;cE()Laeh;
      intermediary method_5634 Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;
      named getSoundCategory Lnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;