From 70c1354a4a96698758a88c032866288f79de6f5a Mon Sep 17 00:00:00 2001 From: Benjamin Culkin Date: Sat, 24 Aug 2024 08:16:37 -0400 Subject: Initial commit --- .../fbs/api/event/CheckingMonocleEvent.class | Bin 0 -> 1183 bytes .../fbs/api/event/CheckingMonocleEvent.java | 35 +++++++++++++++++++ .../fbs/api/event/DamageMonocleEvent.class | Bin 0 -> 743 bytes .../plusplus/fbs/api/event/DamageMonocleEvent.java | 23 +++++++++++++ .../fbs/api/event/PlayerDecodedBookEvent.class | Bin 0 -> 1108 bytes .../fbs/api/event/PlayerDecodedBookEvent.java | 37 +++++++++++++++++++++ .../plusplus/fbs/api/event/PlayerSanityEvent.class | Bin 0 -> 1134 bytes .../plusplus/fbs/api/event/PlayerSanityEvent.java | 32 ++++++++++++++++++ .../fbs/api/event/PlayerSanityRollEvent.class | Bin 0 -> 920 bytes .../fbs/api/event/PlayerSanityRollEvent.java | 24 +++++++++++++ .../fbs/api/event/PlayerUseMagicEvent$Post.class | Bin 0 -> 683 bytes .../fbs/api/event/PlayerUseMagicEvent$Pre.class | Bin 0 -> 680 bytes .../fbs/api/event/PlayerUseMagicEvent.class | Bin 0 -> 998 bytes .../fbs/api/event/PlayerUseMagicEvent.java | 36 ++++++++++++++++++++ .../plusplus/fbs/api/event/SpiritTalkEvent.class | Bin 0 -> 1101 bytes .../jp/plusplus/fbs/api/event/SpiritTalkEvent.java | 30 +++++++++++++++++ 16 files changed, 217 insertions(+) create mode 100644 src/main/java/jp/plusplus/fbs/api/event/CheckingMonocleEvent.class create mode 100644 src/main/java/jp/plusplus/fbs/api/event/CheckingMonocleEvent.java create mode 100644 src/main/java/jp/plusplus/fbs/api/event/DamageMonocleEvent.class create mode 100644 src/main/java/jp/plusplus/fbs/api/event/DamageMonocleEvent.java create mode 100644 src/main/java/jp/plusplus/fbs/api/event/PlayerDecodedBookEvent.class create mode 100644 src/main/java/jp/plusplus/fbs/api/event/PlayerDecodedBookEvent.java create mode 100644 src/main/java/jp/plusplus/fbs/api/event/PlayerSanityEvent.class create mode 100644 src/main/java/jp/plusplus/fbs/api/event/PlayerSanityEvent.java create mode 100644 src/main/java/jp/plusplus/fbs/api/event/PlayerSanityRollEvent.class create mode 100644 src/main/java/jp/plusplus/fbs/api/event/PlayerSanityRollEvent.java create mode 100644 src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent$Post.class create mode 100644 src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent$Pre.class create mode 100644 src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent.class create mode 100644 src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent.java create mode 100644 src/main/java/jp/plusplus/fbs/api/event/SpiritTalkEvent.class create mode 100644 src/main/java/jp/plusplus/fbs/api/event/SpiritTalkEvent.java (limited to 'src/main/java/jp/plusplus/fbs/api/event') 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 Binary files /dev/null and b/src/main/java/jp/plusplus/fbs/api/event/CheckingMonocleEvent.class 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 Binary files /dev/null and b/src/main/java/jp/plusplus/fbs/api/event/DamageMonocleEvent.class 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 Binary files /dev/null and b/src/main/java/jp/plusplus/fbs/api/event/PlayerDecodedBookEvent.class 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 Binary files /dev/null and b/src/main/java/jp/plusplus/fbs/api/event/PlayerSanityEvent.class 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 Binary files /dev/null and b/src/main/java/jp/plusplus/fbs/api/event/PlayerSanityRollEvent.class 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 Binary files /dev/null and b/src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent$Post.class 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 Binary files /dev/null and b/src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent$Pre.class 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 Binary files /dev/null and b/src/main/java/jp/plusplus/fbs/api/event/PlayerUseMagicEvent.class 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 Binary files /dev/null and b/src/main/java/jp/plusplus/fbs/api/event/SpiritTalkEvent.class 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; } +} -- cgit v1.2.3