diff options
Diffstat (limited to 'src/main/java/jp/plusplus/fbs/api/event/PlayerSanityRollEvent.java')
| -rw-r--r-- | src/main/java/jp/plusplus/fbs/api/event/PlayerSanityRollEvent.java | 24 |
1 files changed, 24 insertions, 0 deletions
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; }
+}
|
