Creative Bins? Creative Bins.

This commit is contained in:
aidancbrady committed 2016-08-10 14:37:45 -04:00
1 parent 6de798356f
commit 5a573b7d44
22 files changed
+149 -50

No files matched your search

@@ -44,7 +44,7 @@ import com.google.common.base.Predicates;
public class BlockStateBasic extends ExtendedBlockState
{
public static final PropertyBool activeProperty = PropertyBool.create("active");
public static final PropertyEnum<BaseTier> tierProperty = PropertyEnum.create("tier", BaseTier.class, BaseTier.BASIC, BaseTier.ADVANCED, BaseTier.ELITE, BaseTier.ULTIMATE);
public static final PropertyEnum<BaseTier> tierProperty = PropertyEnum.create("tier", BaseTier.class);
public static final PropertyCTMRenderContext ctmProperty = new PropertyCTMRenderContext();
public BlockStateBasic(BlockBasic block, PropertyEnum<BasicBlockType> typeProperty)
@@ -278,6 +278,11 @@ public class BlockStateBasic extends ExtendedBlockState
{
BaseTier tier = state.getValue(tierProperty);
if(tier == BaseTier.CREATIVE && type != BasicBlockType.BIN)
{
tier = BaseTier.ULTIMATE;
}
nameOverride = type.getName() + "_" + tier.getName();
}