mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 15:23:06 +00:00
21 lines
701 B
Java
21 lines
701 B
Java
package WayofTime.alchemicalWizardry.api.event;
|
|
|
|
import cpw.mods.fml.common.eventhandler.Cancelable;
|
|
import cpw.mods.fml.common.eventhandler.Event;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
@Cancelable
|
|
public class SacrificeKnifeUsedEvent extends Event {
|
|
public final EntityPlayer player;
|
|
public boolean shouldDrainHealth;
|
|
public boolean shouldFillAltar;
|
|
public final int healthDrained;
|
|
|
|
public SacrificeKnifeUsedEvent(EntityPlayer player, boolean shouldDrainHealth, boolean shouldFillAltar, int hp) {
|
|
this.player = player;
|
|
this.shouldDrainHealth = shouldDrainHealth;
|
|
this.shouldFillAltar = shouldFillAltar;
|
|
this.healthDrained = hp;
|
|
}
|
|
}
|