Interface ItemEntityAccessor


public interface ItemEntityAccessor
Mixin accessor interface targeting the ItemEntity class. Exposes the internal age timer to permit direct modification of the entity despawn cycle.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Modifies the internal age variable of the item entity.
  • Method Details

    • enchantment_core$setAge

      void enchantment_core$setAge(int age)
      Modifies the internal age variable of the item entity. Assigning a value of 0 resets the despawn timer, extending the entity lifetime.
      Parameters:
      age - The new age value in ticks.