LivingDropsEvent
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.neoforge.api.event.entity.living.LivingDropsEvent;Extends
LivingDropsEvent extends LivingEvent.
Implements
LivingDropsEvent
implements the following interfaces:
 Listening to the event
This event can be listened to like so:
events.register<crafttweaker.neoforge.api.event.entity.living.LivingDropsEvent>(event => {    println("LivingDropsEvent ran!");});Members
addDrop(stack as IItemStack)
Adds an item to the drops.script.zs            
event.addDrop(myIItemStack);Parameters:
stack: IItemStack  Type: IItemStack   cancel()
Cancels the event. Same as script.zs       
setCanceled(true)// LivingDropsEvent.cancel();event.cancel();Getter
// LivingDropsEvent.canceled as boolevent.canceled
Return Type:
bool
Setter
// LivingDropsEvent.canceled = (cancel as bool);event.canceled = myBool;Parameters:
cancel: bool  Type: bool   canceled() as bool
// LivingDropsEvent.canceled() as bool;event.canceled();
Return Type:
bool
canceled(cancel as bool)
// LivingDropsEvent.canceled(cancel as bool);event.canceled(myBool);Parameters:
cancel: bool  Type: bool   Getter
Returns the list of items will be dropped. The list is read-only, modifying this list does not change the drops. script.zs   
 
You should use the drops setter, addDrop or removeDrop method to change the drops. 
event.drops
Return Type:
List<IItemStack>
Setter
Sets which items will be dropped.script.zs          
event.drops = myList;Parameters:
drops: List<IItemStack>  Type: List<IItemStack>   Getter
// LivingDropsEvent.entity as LivingEntityevent.entity
Return Type:
LivingEntity
Getter
Getter
Whether the Entity doing the drop has recently been damaged.script.zs   
// LivingDropsEvent.isRecentlyHit as boolevent.isRecentlyHit
Return Type:
bool
Getter
// LivingDropsEvent.lootingLevel as intevent.lootingLevel
Return Type:
int
removeDrop(ingredient as IIngredient)
Removes items that match the given ingredient from drops.script.zs            
event.removeDrop(myIIngredient);Parameters:
ingredient: IIngredient  Type: IIngredient   Getter
// LivingDropsEvent.source as DamageSourceevent.source
Return Type:
DamageSource