001 package net.minecraftforge.event.entity.living; 002 003 import java.util.ArrayList; 004 005 import net.minecraft.util.DamageSource; 006 import net.minecraft.entity.item.EntityItem; 007 import net.minecraft.entity.EntityLiving; 008 import net.minecraftforge.event.Cancelable; 009 010 @Cancelable 011 public class LivingDropsEvent extends LivingEvent 012 { 013 public final DamageSource source; 014 public final ArrayList<EntityItem> drops; 015 public final int lootingLevel; 016 public final boolean recentlyHit; 017 public final int specialDropValue; 018 019 public LivingDropsEvent(EntityLiving entity, DamageSource source, ArrayList<EntityItem> drops, int lootingLevel, boolean recentlyHit, int specialDropValue) 020 { 021 super(entity); 022 this.source = source; 023 this.drops = drops; 024 this.lootingLevel = lootingLevel; 025 this.recentlyHit = recentlyHit; 026 this.specialDropValue = specialDropValue; 027 } 028 }