blob: 4425ce07813ee77e1fb5bbda69d83823a5915a0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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; }
}
|