2015-02-23 18:45:32 -05:00
|
|
|
package WayofTime.alchemicalWizardry.api.event;
|
|
|
|
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
2015-07-29 09:08:46 -04:00
|
|
|
import net.minecraftforge.fml.common.eventhandler.Cancelable;
|
|
|
|
import net.minecraftforge.fml.common.eventhandler.Event;
|
2015-02-23 18:45:32 -05:00
|
|
|
|
|
|
|
@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;
|
|
|
|
}
|
|
|
|
}
|