diff options
Diffstat (limited to 'src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent.java')
| -rw-r--r-- | src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent.java b/src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent.java new file mode 100644 index 0000000..d396dd9 --- /dev/null +++ b/src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent.java @@ -0,0 +1,36 @@ +package jp.plusplus.fbs.api.event;
+
+import jp.plusplus.fbs.api.MagicBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.event.entity.player.PlayerEvent;
+
+/**
+ * Created by pluslus_F on 2015/06/18.
+ */
+public class PlayerUseMagicEvent extends PlayerEvent {
+ public MagicBase magic;
+ public ItemStack[] books;
+
+ public PlayerUseMagicEvent(EntityPlayer player, MagicBase mb, ItemStack[] b) {
+ super(player);
+ magic=mb;
+ books=b;
+ }
+
+ @Override
+ public boolean isCancelable(){
+ return true;
+ }
+
+ public static class Pre extends PlayerUseMagicEvent{
+ public Pre(EntityPlayer player, MagicBase mb, ItemStack[] b) {
+ super(player, mb, b);
+ }
+ }
+ public static class Post extends PlayerUseMagicEvent{
+ public Post(EntityPlayer player, MagicBase mb, ItemStack[] b) {
+ super(player, mb, b);
+ }
+ }
+}
|
