ExpandItem - friendlyhj/ZenUtils GitHub Wiki
ExpandItem adds some function that CoT forgets to support.
import mods.zenutils.cotx.Item;
- IEntityItemUpdate onEntityItemUpdate (default null)
- boolean noRepair (default false)
- IGetEntityLifeSpan getEntityLifeSpan (default null)
ExpandItem extends ItemRepresentation. That means all Methods and ZenProperties that are available for Items are also available for expand items!
Package name: mods.zenutils.cotx.IEntityItemUpdate
The function only has an IEntityItem parameter and need return a bool. Return true to skip any further update code.
Package name: mods.zenutils.cotx.IGetEntityLifeSpan
The function has IItemStack and IWorld paremeters in order and need return int to retrieve ticks the dropped item can exist in world. The stardened value in 6000. (6000 ticks, 5 mins)