MCLivingDropsEvent

Link to mclivingdropsevent

The event is cancelable.

If the event is canceled, the entity does not drop anything.

The event does not have a result.

Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.event.entity.living.MCLivingDropsEvent;

Extending MCLivingEvent

Link to extending-mclivingevent

MCLivingDropsEvent extends MCLivingEvent. That means all methods available in MCLivingEvent are also available in MCLivingDropsEvent

NameTypeHas GetterHas SetterDescription
Name
drops
Type
Collection<IItemStack>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
lootingLevel
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
recentlyHit
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
źródło
Type
DamageSource
Has Getter
true
Has Setter
false
Description
No Description Provided