diff options
| author | Benjamin Culkin <scorpress@gmail.com> | 2024-08-24 08:16:37 -0400 |
|---|---|---|
| committer | Benjamin Culkin <scorpress@gmail.com> | 2024-08-24 08:16:37 -0400 |
| commit | 70c1354a4a96698758a88c032866288f79de6f5a (patch) | |
| tree | eca51294e84b90a4cb3230bc2c7900469e784184 /src/main/java/jp/plusplus/fbs/api/event/PlayerSanityRollEvent.java | |
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; }
+}
|
