Cleanup of model registration

This commit is contained in:
drcrazy 2018-10-04 12:38:34 +03:00
parent ec0724b15f
commit 4612ab334c
22 changed files with 35 additions and 86 deletions

View file

@ -54,8 +54,6 @@ public class BlockNuke extends BaseBlock {
public BlockNuke() {
super(Material.TNT);
setTranslationKey("techreborn.nuke");
setCreativeTab(TechReborn.TAB);
this.setDefaultState(this.blockState.getBaseState().withProperty(OVERLAY, false));
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this));
}

View file

@ -27,16 +27,13 @@ package techreborn.blocks;
import net.minecraft.block.BlockFence;
import net.minecraft.block.BlockPlanks;
import net.minecraft.block.material.Material;
import techreborn.TechReborn;
public class BlockRefinedIronFence extends BlockFence {
public BlockRefinedIronFence() {
super(Material.IRON, BlockPlanks.EnumType.OAK.getMapColor());
setCreativeTab(TechReborn.TAB);
setHardness(2.0F);
setHarvestLevel("pickaxe", 2);
//RebornModelRegistry.registerModel(new ModelCompound(ModInfo.MOD_ID, this));
}
}

View file

@ -40,7 +40,6 @@ public class BlockReinforcedGlass extends BlockGlass {
public BlockReinforcedGlass() {
super(Material.GLASS, false);
setCreativeTab(TechReborn.TAB);
setSoundType(SoundType.STONE);
setHardness(4.0F);
setResistance(60F);

View file

@ -49,7 +49,6 @@ public class BlockRubberLeaves extends BlockLeaves {
public BlockRubberLeaves() {
super();
setCreativeTab(TechReborn.TAB);
this.setDefaultState(this.getDefaultState().withProperty(CHECK_DECAY, true)
.withProperty(DECAYABLE, true));
Blocks.FIRE.setFireInfo(this, 30, 60);

View file

@ -66,7 +66,6 @@ public class BlockRubberLog extends Block {
public BlockRubberLog() {
super(Material.WOOD);
setCreativeTab(TechReborn.TAB);
this.setHardness(2.0F);
this.setDefaultState(
this.getDefaultState().withProperty(SAP_SIDE, EnumFacing.NORTH).withProperty(HAS_SAP, false));

View file

@ -39,7 +39,6 @@ public class BlockRubberPlank extends Block {
public BlockRubberPlank() {
super(Material.WOOD);
setCreativeTab(TechReborn.TAB);
this.setHardness(2.0F);
this.setSoundType(SoundType.WOOD);
Blocks.FIRE.setFireInfo(this, 5, 20);

View file

@ -58,7 +58,6 @@ public abstract class BlockRubberPlankSlab extends BlockSlab {
iblockstate = iblockstate.withProperty(HALF, EnumBlockHalf.BOTTOM);
halfslab = this;
}
setCreativeTab(TechReborn.TAB);
setHarvestLevel("axe", 0);
setHardness(2.0F);
setResistance(15);

View file

@ -34,7 +34,6 @@ public class BlockRubberPlankStair extends BlockStairs {
public BlockRubberPlankStair(IBlockState modelState, String name) {
super(modelState);
setCreativeTab(TechReborn.TAB);
useNeighborBrightness = true;
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this));
}

View file

@ -32,9 +32,6 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.NonNullList;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import reborncore.client.models.ModelCompound;
import reborncore.client.models.RebornModelRegistry;
import techreborn.TechReborn;
import techreborn.world.RubberTreeGenerator;
import java.util.Random;
@ -45,10 +42,8 @@ import java.util.Random;
public class BlockRubberSapling extends BlockSapling {
public BlockRubberSapling() {
setCreativeTab(TechReborn.TAB);
this.setDefaultState(this.getDefaultState().withProperty(STAGE, 0));
setSoundType(SoundType.PLANT);
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this));
}
@Override