summaryrefslogtreecommitdiff
path: root/src/main/java/jp/plusplus/fbs/item/ItemStoneSpirit.java
blob: 16c85563df2de152f89f9ba58a5693fbb2d4b020 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package jp.plusplus.fbs.item;

import jp.plusplus.fbs.FBS;

import java.util.Random;

/**
 * Created by plusplus_F on 2015/11/14.
 */
public class ItemStoneSpirit extends ItemBase {
    protected Random rand=new Random();

    public ItemStoneSpirit(){
        setCreativeTab(FBS.tabSpirit);
        setMaxStackSize(1);
    }

    public boolean getSex(){
        if(this==ItemCore.stoneActiveFemale) return false;
        if(this==ItemCore.stoneActiveMale) return true;
        return rand.nextBoolean();
    }
}