-
Notifications
You must be signed in to change notification settings - Fork 10
ExpandItem
youyihj edited this page Nov 3, 2020
·
3 revisions
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)
- GlobalFunctions
- ScriptReloading
- SuppressErrorPreprocessor
- HardFailPreprocessor
- OrderlyMap
- IData Deep Update
- Template String
- Native Method Access
- Mixin
- CrTI18n
- CrTUUID
- CrTItemHandler
- CrTLiquidHandler
- ILiquidTankProperties
- StringList
- HexHelper
- StaticString
- Catenation
- PersistedCatenation
- PlayerStat
- IStatFormatter
- GameRuleHelper
- ZenCommand
- ZenCommandTree
- ZenUtilsCommandSender
- IGetCommandUsage
- ICommandExecute
- IGetTabCompletion
- CommandUtils