-
Notifications
You must be signed in to change notification settings - Fork 10
EntityItemDeathEvent
youyihj edited this page Dec 11, 2023
·
1 revision
@since 1.13.9
This event is fired when an entity item dies, because of lava, fire, void, etc, but not hopper and other transport devices.
mods.zenutils.event.EntityItemDeathEvent
EntityItemDeath Event implements the following interfaces and are able to call all of their methods/getters/setters as well:
This code calls an event handler of EntityRemove event.
events.onEntityItemDeath(function(event as EntityItemDeathEvent) {...} );
The following information can be retrieved/set during the event:
ZenGetter | Return Type |
---|---|
item |
IEntityItem |
damageSource |
IDamageSource |
- 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