forked from TAIGA/TAIGA
New traits!
This commit is contained in:
@@ -2,15 +2,9 @@ package com.sosnitzka.ztic_addon.generic;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.block.properties.PropertyBool;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
|
||||
public class BasicBlock extends Block {
|
||||
public static final PropertyBool ISSUN = PropertyBool.create("issun");
|
||||
private String oreDictPrefix;
|
||||
private int lVal;
|
||||
|
||||
public BasicBlock(String name, Material material, float hardness, float resistance, int harvest, float lightLevel, String oreDictPrefix) {
|
||||
super(material);
|
||||
@@ -21,12 +15,6 @@ public class BasicBlock extends Block {
|
||||
setHarvestLevel("pickaxe", harvest);
|
||||
setLightLevel(lightLevel);
|
||||
this.oreDictPrefix = oreDictPrefix;
|
||||
|
||||
}
|
||||
|
||||
public BasicBlock(String name, Material material, float hardness, float resistance, int harvest, float lightLevel, String oreDictPrefix, int activatedLL) {
|
||||
this(name, material, hardness, resistance, harvest, lightLevel, oreDictPrefix);
|
||||
this.lVal = activatedLL;
|
||||
}
|
||||
|
||||
public BasicBlock(String name, Material material, float hardness, float resistance, int harvest) {
|
||||
@@ -49,13 +37,4 @@ public class BasicBlock extends Block {
|
||||
return this.oreDictPrefix;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int getLightValue(IBlockState state, IBlockAccess world, BlockPos pos) {
|
||||
if (state.getValue(ISSUN)) {
|
||||
return lVal;
|
||||
} else {
|
||||
return this.lightValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user