mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-28 07:35:44 +00:00
32 lines
741 B
Java
32 lines
741 B
Java
package mantle.event;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import cpw.mods.fml.common.eventhandler.Event;
|
|
|
|
public abstract class ManualOpenEvent extends Event {
|
|
|
|
public ItemStack bookStack;
|
|
public EntityPlayer player;
|
|
|
|
public ManualOpenEvent(ItemStack book, EntityPlayer player) {
|
|
this.bookStack = book;
|
|
this.player = player;
|
|
}
|
|
|
|
public static class Pre extends ManualOpenEvent {
|
|
|
|
public Pre(ItemStack book, EntityPlayer player) {
|
|
super(book, player);
|
|
}
|
|
}
|
|
|
|
public static class Post extends ManualOpenEvent {
|
|
|
|
public Post(ItemStack book, EntityPlayer player) {
|
|
super(book, player);
|
|
}
|
|
}
|
|
}
|