summaryrefslogtreecommitdiff
path: root/src/main/java/jp/plusplus/fbs/api/event
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/jp/plusplus/fbs/api/event')
-rw-r--r--src/main/java/jp/plusplus/fbs/api/event/CheckingMonocleEvent.classbin0 -> 1183 bytes
-rw-r--r--src/main/java/jp/plusplus/fbs/api/event/CheckingMonocleEvent.java35
-rw-r--r--src/main/java/jp/plusplus/fbs/api/event/DamageMonocleEvent.classbin0 -> 743 bytes
-rw-r--r--src/main/java/jp/plusplus/fbs/api/event/DamageMonocleEvent.java23
-rw-r--r--src/main/java/jp/plusplus/fbs/api/event/PlayerDecodedBookEvent.classbin0 -> 1108 bytes
-rw-r--r--src/main/java/jp/plusplus/fbs/api/event/PlayerDecodedBookEvent.java37
-rw-r--r--src/main/java/jp/plusplus/fbs/api/event/PlayerSanityEvent.classbin0 -> 1134 bytes
-rw-r--r--src/main/java/jp/plusplus/fbs/api/event/PlayerSanityEvent.java32
-rw-r--r--src/main/java/jp/plusplus/fbs/api/event/PlayerSanityRollEvent.classbin0 -> 920 bytes
-rw-r--r--src/main/java/jp/plusplus/fbs/api/event/PlayerSanityRollEvent.java24
-rw-r--r--src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent$Post.classbin0 -> 683 bytes
-rw-r--r--src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent$Pre.classbin0 -> 680 bytes
-rw-r--r--src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent.classbin0 -> 998 bytes
-rw-r--r--src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent.java36
-rw-r--r--src/main/java/jp/plusplus/fbs/api/event/SpiritTalkEvent.classbin0 -> 1101 bytes
-rw-r--r--src/main/java/jp/plusplus/fbs/api/event/SpiritTalkEvent.java30
16 files changed, 217 insertions, 0 deletions
diff --git a/src/main/java/jp/plusplus/fbs/api/event/CheckingMonocleEvent.class b/src/main/java/jp/plusplus/fbs/api/event/CheckingMonocleEvent.class
new file mode 100644
index 0000000..b99737a
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/api/event/CheckingMonocleEvent.class
Binary files differ
diff --git a/src/main/java/jp/plusplus/fbs/api/event/CheckingMonocleEvent.java b/src/main/java/jp/plusplus/fbs/api/event/CheckingMonocleEvent.java
new file mode 100644
index 0000000..dbbf74f
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/api/event/CheckingMonocleEvent.java
@@ -0,0 +1,35 @@
+package jp.plusplus.fbs.api.event;
+
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.event.entity.player.PlayerEvent;
+import net.minecraft.entity.player.EntityPlayer;
+
+/**
+ * Created by plusplus_F on 2016/03/06.
+ *
+ * プレイヤーがモノクルを持っているかの判定イベント
+ */
+public class CheckingMonocleEvent extends PlayerEvent {
+ private boolean has;
+ private ItemStack monocle;
+
+ public CheckingMonocleEvent(EntityPlayer player, ItemStack has) {
+ super(player);
+ this.has=(has!=null);
+ monocle=has;
+ }
+
+ public boolean hasMonocle(){
+ return has;
+ }
+ public ItemStack getMonocle(){
+ return monocle;
+ }
+
+ public void setMonocle(ItemStack itemStack){
+ if(itemStack!=null){
+ has=true;
+ monocle=itemStack;
+ }
+ }
+}
diff --git a/src/main/java/jp/plusplus/fbs/api/event/DamageMonocleEvent.class b/src/main/java/jp/plusplus/fbs/api/event/DamageMonocleEvent.class
new file mode 100644
index 0000000..099299f
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/api/event/DamageMonocleEvent.class
Binary files differ
diff --git a/src/main/java/jp/plusplus/fbs/api/event/DamageMonocleEvent.java b/src/main/java/jp/plusplus/fbs/api/event/DamageMonocleEvent.java
new file mode 100644
index 0000000..be7237b
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/api/event/DamageMonocleEvent.java
@@ -0,0 +1,23 @@
+package jp.plusplus.fbs.api.event;
+
+import net.minecraftforge.event.entity.player.PlayerEvent;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+
+/**
+ * Created by plusplus_F on 2016/03/06.
+ *
+ * モノクルの耐久度を消費するときのイベント
+ */
+public class DamageMonocleEvent extends PlayerEvent {
+ private ItemStack monocle;
+
+ public DamageMonocleEvent(EntityPlayer player, ItemStack monocle) {
+ super(player);
+ this.monocle=monocle;
+ }
+
+ public ItemStack getMonocle(){
+ return monocle;
+ }
+}
diff --git a/src/main/java/jp/plusplus/fbs/api/event/PlayerDecodedBookEvent.class b/src/main/java/jp/plusplus/fbs/api/event/PlayerDecodedBookEvent.class
new file mode 100644
index 0000000..4afa0fe
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/api/event/PlayerDecodedBookEvent.class
Binary files differ
diff --git a/src/main/java/jp/plusplus/fbs/api/event/PlayerDecodedBookEvent.java b/src/main/java/jp/plusplus/fbs/api/event/PlayerDecodedBookEvent.java
new file mode 100644
index 0000000..7367dfb
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/api/event/PlayerDecodedBookEvent.java
@@ -0,0 +1,37 @@
+package jp.plusplus.fbs.api.event;
+
+import jp.plusplus.fbs.Registry;
+import net.minecraftforge.event.entity.player.PlayerEvent;
+import net.minecraft.entity.player.EntityPlayer;
+
+/**
+ * Createdby pluslus_Fon 2015/06/14.
+ * プレイヤーが魔導書を使用した際に呼ばれるイベント
+ */
+public class PlayerDecodedBookEvent extends PlayerEvent {
+ private Registry.BookData bookData;
+ private boolean success;
+
+ public PlayerDecodedBookEvent(EntityPlayer player, Registry.BookData bd, boolean success) {
+ super(player);
+ bookData=bd.copy();
+ this.success=success;
+ }
+
+ @Override
+ public boolean isCancelable() {
+ return true;
+ }
+
+ /**
+ * 使用した書物
+ * @return
+ */
+ public Registry.BookData getBook(){ return bookData; }
+
+ /**
+ * 魔法の行使に成功したか
+ * @return
+ */
+ public boolean isSuccess(){ return success; }
+}
diff --git a/src/main/java/jp/plusplus/fbs/api/event/PlayerSanityEvent.class b/src/main/java/jp/plusplus/fbs/api/event/PlayerSanityEvent.class
new file mode 100644
index 0000000..5568b76
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/api/event/PlayerSanityEvent.class
Binary files differ
diff --git a/src/main/java/jp/plusplus/fbs/api/event/PlayerSanityEvent.java b/src/main/java/jp/plusplus/fbs/api/event/PlayerSanityEvent.java
new file mode 100644
index 0000000..4425ce0
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/api/event/PlayerSanityEvent.java
@@ -0,0 +1,32 @@
+package jp.plusplus.fbs.api.event;
+
+import net.minecraftforge.event.entity.player.PlayerEvent;
+import net.minecraft.entity.player.EntityPlayer;
+
+/**
+ * Createdby pluslus_Fon 2015/06/05.
+ *
+ * newChangeLVは機能しないので注意
+ */
+public class PlayerSanityEvent extends PlayerEvent {
+ private int changeSanity, changeLv;
+ private double changeExp;
+
+ public int newChangeSanity, newChangeLv;
+ public double newChangeExp;
+
+ public PlayerSanityEvent(EntityPlayer player, int ds, double de, int dl) {
+ super(player);
+ newChangeSanity=changeSanity=ds;
+ newChangeExp=changeExp=de;
+ newChangeLv=changeLv=dl;
+ }
+
+ public boolean isCancelable() {
+ return true;
+ }
+
+ public int getChangeSanity(){ return changeSanity; }
+ public int getChangeLv(){ return changeLv; }
+ public double getChangeEXP(){ return changeExp; }
+}
diff --git a/src/main/java/jp/plusplus/fbs/api/event/PlayerSanityRollEvent.class b/src/main/java/jp/plusplus/fbs/api/event/PlayerSanityRollEvent.class
new file mode 100644
index 0000000..9827f8f
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/api/event/PlayerSanityRollEvent.class
Binary files differ
diff --git a/src/main/java/jp/plusplus/fbs/api/event/PlayerSanityRollEvent.java b/src/main/java/jp/plusplus/fbs/api/event/PlayerSanityRollEvent.java
new file mode 100644
index 0000000..b6bb1b5
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/api/event/PlayerSanityRollEvent.java
@@ -0,0 +1,24 @@
+package jp.plusplus.fbs.api.event;
+
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraftforge.event.entity.player.PlayerEvent;
+
+/**
+ * Created by plusplus_F on 2016/03/09.
+ */
+public class PlayerSanityRollEvent extends PlayerEvent {
+ private int trial, max;
+ public int newTrial, newMax;
+
+ public PlayerSanityRollEvent(EntityPlayer player, int trial, int max) {
+ super(player);
+ this.trial=newTrial=trial;
+ this.max=newMax=max;
+ }
+
+ @Override
+ public boolean isCancelable(){ return true; }
+
+ public int getTrial(){ return trial; }
+ public int getMax(){ return max; }
+}
diff --git a/src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent$Post.class b/src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent$Post.class
new file mode 100644
index 0000000..17e6d0c
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent$Post.class
Binary files differ
diff --git a/src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent$Pre.class b/src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent$Pre.class
new file mode 100644
index 0000000..5fc40c5
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent$Pre.class
Binary files differ
diff --git a/src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent.class b/src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent.class
new file mode 100644
index 0000000..2530d1b
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent.class
Binary files differ
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);
+ }
+ }
+}
diff --git a/src/main/java/jp/plusplus/fbs/api/event/SpiritTalkEvent.class b/src/main/java/jp/plusplus/fbs/api/event/SpiritTalkEvent.class
new file mode 100644
index 0000000..a34a0e7
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/api/event/SpiritTalkEvent.class
Binary files differ
diff --git a/src/main/java/jp/plusplus/fbs/api/event/SpiritTalkEvent.java b/src/main/java/jp/plusplus/fbs/api/event/SpiritTalkEvent.java
new file mode 100644
index 0000000..2f00298
--- /dev/null
+++ b/src/main/java/jp/plusplus/fbs/api/event/SpiritTalkEvent.java
@@ -0,0 +1,30 @@
+package jp.plusplus.fbs.api.event;
+
+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/17.
+ * 精霊武器との会話イベント
+ */
+public class SpiritTalkEvent extends PlayerEvent {
+ private String character;
+ private String event;
+ private Object[] params;
+ public SpiritTalkEvent(EntityPlayer player, String character, String event, Object ... params) {
+ super(player);
+ this.character=character;
+ this.event=event;
+ this.params=params;
+ }
+
+ @Override
+ public boolean isCancelable() {
+ return true;
+ }
+
+ public String getCharacter(){ return character; }
+ public String getEvent(){ return event; }
+ public Object[] getParams(){ return params; }
+}