Class ItemEntity

    • Field Detail

      • age

        private int age
      • pickupDelay

        private int pickupDelay
      • health

        private int health
      • thrower

        private java.util.UUID thrower
      • owner

        private java.util.UUID owner
      • bobOffs

        public final float bobOffs
      • lifespan

        public int lifespan
        The maximum age of this EntityItem. The item is expired once this is reached.
    • Constructor Detail

      • ItemEntity

        public ItemEntity​(World p_i1709_1_,
                          double p_i1709_2_,
                          double p_i1709_4_,
                          double p_i1709_6_)
      • ItemEntity

        public ItemEntity​(World p_i1710_1_,
                          double p_i1710_2_,
                          double p_i1710_4_,
                          double p_i1710_6_,
                          ItemStack p_i1710_8_)
      • ItemEntity

        private ItemEntity​(ItemEntity p_i231561_1_)
    • Method Detail

      • tick

        public void tick()
        Overrides:
        tick in class Entity
      • setUnderwaterMovement

        private void setUnderwaterMovement()
      • setUnderLavaMovement

        private void setUnderLavaMovement()
      • mergeWithNeighbours

        private void mergeWithNeighbours()
      • isMergable

        private boolean isMergable()
      • tryToMerge

        private void tryToMerge​(ItemEntity p_226530_1_)
      • areMergable

        public static boolean areMergable​(ItemStack p_226532_0_,
                                          ItemStack p_226532_1_)
      • fireImmune

        public boolean fireImmune()
        Overrides:
        fireImmune in class Entity
      • hurt

        public boolean hurt​(DamageSource p_70097_1_,
                            float p_70097_2_)
        Overrides:
        hurt in class Entity
      • setItem

        public void setItem​(ItemStack p_92058_1_)
      • getOwner

        @Nullable
        public java.util.UUID getOwner()
      • setOwner

        public void setOwner​(@Nullable
                             java.util.UUID p_200217_1_)
      • getThrower

        @Nullable
        public java.util.UUID getThrower()
      • setThrower

        public void setThrower​(@Nullable
                               java.util.UUID p_200216_1_)
      • getAge

        public int getAge()
      • setDefaultPickUpDelay

        public void setDefaultPickUpDelay()
      • setNoPickUpDelay

        public void setNoPickUpDelay()
      • setNeverPickUp

        public void setNeverPickUp()
      • setPickUpDelay

        public void setPickUpDelay​(int p_174867_1_)
      • hasPickUpDelay

        public boolean hasPickUpDelay()
      • setExtendedLifetime

        public void setExtendedLifetime()
      • makeFakeItem

        public void makeFakeItem()
      • getSpin

        public float getSpin​(float p_234272_1_)