18 lines
504 B
Java
18 lines
504 B
Java
package net.minecraftforge.event.entity.living;
|
|
|
|
import net.minecraft.util.DamageSource;
|
|
import net.minecraft.entity.EntityLivingBase;
|
|
import net.minecraftforge.event.Cancelable;
|
|
|
|
@Cancelable
|
|
public class LivingAttackEvent extends LivingEvent
|
|
{
|
|
public final DamageSource source;
|
|
public final float ammount;
|
|
public LivingAttackEvent(EntityLivingBase entity, DamageSource source, float ammount)
|
|
{
|
|
super(entity);
|
|
this.source = source;
|
|
this.ammount = ammount;
|
|
}
|
|
}
|