summaryrefslogtreecommitdiff
path: root/src/main/java/jp/plusplus/fbs/tileentity/TileEntityHavestableMushroom.java
blob: 2b2c61798949ae6d8f0fc4b41822fde491791ab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package jp.plusplus.fbs.tileentity;

/**
 * Created by plusplus_F on 2016/02/23.
 */
public class TileEntityHavestableMushroom extends TileEntityHavestable {
    public TileEntityHavestableMushroom(){

    }
    public TileEntityHavestableMushroom(int ageMax, int meta) {
        super(ageMax, meta);
    }

    @Override
    public boolean canGlow(){
        return getBlockMetadata()==0 || worldObj.getBlockLightValue(xCoord, yCoord, zCoord)<=8;
    }
}