Rubber Plank stairs got textures

This commit is contained in:
drcrazy 2019-03-01 17:29:19 +03:00
parent f6d94647e2
commit f6579f5c2c
11 changed files with 77 additions and 57 deletions

View file

@ -26,7 +26,6 @@ package techreborn.blocks;
import net.minecraft.block.Block;
import net.minecraft.block.BlockStairs;
import net.minecraft.block.state.IBlockState;
import reborncore.client.models.ModelCompound;
import reborncore.client.models.RebornModelRegistry;
import techreborn.TechReborn;
@ -34,8 +33,8 @@ import techreborn.init.TRContent;
public class BlockRubberPlankStair extends BlockStairs {
public BlockRubberPlankStair(IBlockState modelState, String name) {
super(modelState, Block.Properties.from(TRContent.RUBBER_PLANKS));
public BlockRubberPlankStair() {
super(TRContent.RUBBER_PLANKS.getDefaultState(), Block.Properties.from(TRContent.RUBBER_PLANKS));
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this));
}
}

View file

@ -88,8 +88,7 @@ public class RegistryEventHandler {
ItemBlockRubberSapling.class,
"rubber_sapling");
RebornRegistry.registerBlockNoItem(TRContent.RUBBER_LOG_SLAB = InitUtils.setup(new BlockRubberPlankSlab("rubber_plank"), "rubber_plank_slab"));
RebornRegistry.registerBlock(TRContent.RUBBER_LOG_STAIR = InitUtils.setup(new BlockRubberPlankStair(TRContent.RUBBER_LOG.getDefaultState(), "rubber_plank"),
"rubber_plank_stair"), new Item.Properties());
RebornRegistry.registerBlock(TRContent.RUBBER_PLANK_STAIR = InitUtils.setup(new BlockRubberPlankStair(), "rubber_plank_stair"), new Item.Properties().group(TechReborn.ITEMGROUP));
TechReborn.LOGGER.debug("TechReborns Blocks Loaded");
}

View file

@ -44,7 +44,7 @@ public class TRContent {
public static Block RUBBER_LEAVES;
public static Block RUBBER_LOG;
public static Block RUBBER_LOG_SLAB;
public static Block RUBBER_LOG_STAIR;
public static Block RUBBER_PLANK_STAIR;
public static Block RUBBER_PLANKS;
public static Block RUBBER_SAPLING;