Skip to content

ExpandItem

youyihj edited this page Nov 3, 2020 · 3 revisions

ExpandItem

ExpandItem adds some function that CoT forgets to support.

Importing the package

import mods.zenutils.cotx.Item;

ZenProperties

  • IEntityItemUpdate onEntityItemUpdate (default null)
  • boolean noRepair (default false)
  • IGetEntityLifeSpan getEntityLifeSpan (default null)

Expansion

ExpandItem extends ItemRepresentation. That means all Methods and ZenProperties that are available for Items are also available for expand items!

Linked Functions

IEntityItemUpdate

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.

IGetEntityLifeSpan

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)

Clone this wiki locally