summaryrefslogtreecommitdiff
path: root/src/main/java/jp/plusplus/fbs/trouble/TroubleBase.java
blob: 70c8b21c0fa07eae599a193d3a15f23edec4a893 (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.trouble;

import jp.plusplus.fbs.Registry;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;

/**
 * Created by plusplus_F on 2015/09/17.
 * 解読に失敗したときとかのいたずら
 */
public abstract class TroubleBase {
    /**
     * 出現し始める適性魔術レベル
     */
    protected int minLv;

    public TroubleBase(int min){
        minLv=min;
    }

    public int getMinimumMagicLv(){ return minLv; }
    public abstract void done(World world, EntityPlayer player, Registry.BookData bd);
    public String getMessage(){ return "info.fbs.book.trouble"; };
}