LootingLevel
Link to lootinglevel
This event is fired whenever a Living Entity creature is killed in order to calculate the looting level. The value can be increased or decreased or left as-is. The value may have already been modified by other events, but the original value is not included.
Класс события
Link to класс-события
You will need to cast the event in the function header as this class:
crafttweaker.event.LootingLevelEvent
You can, of course, also import the class before and use that name then.
Наследование от интерфейсов событий
Link to наследование-от-интерфейсов-событий
LootingLevel Events implement the following interfaces and are able to call all of their methods/getters/setters as well:
Геттеры/сеттеры
Link to геттерысеттеры
The following information can be retrieved/set during the event:
ZenGetter | ZenSetter | Тип |
---|---|---|
ZenGetter lootingLevel | ZenSetter lootingLevel | Тип int |
ZenGetter damageSource | ZenSetter | Тип IDamageSource |