2015-11-07 11:51:41 -05:00
|
|
|
package WayofTime.bloodmagic.api.event;
|
|
|
|
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraftforge.fml.common.eventhandler.Cancelable;
|
|
|
|
import net.minecraftforge.fml.common.eventhandler.Event;
|
|
|
|
|
|
|
|
@Cancelable
|
|
|
|
public class SacrificeKnifeUsedEvent extends Event {
|
|
|
|
public final EntityPlayer player;
|
2015-11-28 18:25:46 -08:00
|
|
|
public final int healthDrained;
|
2015-11-07 11:51:41 -05:00
|
|
|
public boolean shouldDrainHealth;
|
|
|
|
public boolean shouldFillAltar;
|
|
|
|
|
|
|
|
public SacrificeKnifeUsedEvent(EntityPlayer player, boolean shouldDrainHealth, boolean shouldFillAltar, int hp) {
|
|
|
|
this.player = player;
|
|
|
|
this.shouldDrainHealth = shouldDrainHealth;
|
|
|
|
this.shouldFillAltar = shouldFillAltar;
|
|
|
|
this.healthDrained = hp;
|
|
|
|
}
|
|
|
|
}
|