summaryrefslogtreecommitdiff
path: root/src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent.java
diff options
context:
space:
mode:
authorBenjamin Culkin <scorpress@gmail.com>2024-08-24 08:16:37 -0400
committerBenjamin Culkin <scorpress@gmail.com>2024-08-24 08:16:37 -0400
commit70c1354a4a96698758a88c032866288f79de6f5a (patch)
treeeca51294e84b90a4cb3230bc2c7900469e784184 /src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent.java
Initial commitHEADtrunk
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.java36
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);
+ }
+ }
+}