summaryrefslogtreecommitdiff
path: root/src/main/java/jp/plusplus/fbs/api/event/PlayerSanityRollEvent.java
blob: b6bb1b5e1f2df4ecc7809596e84d3306f0259245 (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
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; }
}