Removed excessive setCreativeTab from blocks

This commit is contained in:
drcrazy 2018-09-25 13:56:59 +03:00
parent f600432f05
commit 1e9cfa07b6
69 changed files with 15 additions and 169 deletions

View file

@ -33,13 +33,11 @@ import reborncore.common.blocks.BlockMachineBase;
import techreborn.TechReborn;
import techreborn.client.EGui;
import techreborn.tiles.machine.tier1.TileAlloySmelter;
import techreborn.utils.TechRebornCreativeTab;
public class BlockAlloySmelter extends BlockMachineBase {
public BlockAlloySmelter() {
super();
setCreativeTab(TechRebornCreativeTab.instance);
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, "machines/tier1_machines"));
}

View file

@ -33,13 +33,11 @@ import reborncore.common.blocks.BlockMachineBase;
import techreborn.TechReborn;
import techreborn.client.EGui;
import techreborn.tiles.machine.tier1.TileAssemblingMachine;
import techreborn.utils.TechRebornCreativeTab;
public class BlockAssemblingMachine extends BlockMachineBase {
public BlockAssemblingMachine() {
super();
setCreativeTab(TechRebornCreativeTab.instance);
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, "machines/tier1_machines"));
}

View file

@ -35,14 +35,11 @@ import reborncore.common.blocks.BlockMachineBase;
import techreborn.TechReborn;
import techreborn.client.EGui;
import techreborn.tiles.machine.tier1.TileAutoCraftingTable;
import techreborn.utils.TechRebornCreativeTab;
public class BlockAutoCraftingTable extends BlockMachineBase {
public BlockAutoCraftingTable() {
super(true);
setTranslationKey("techreborn.electriccraftingtable");
setCreativeTab(TechRebornCreativeTab.instance);
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, "machines/tier1_machines"));
}

View file

@ -33,13 +33,11 @@ import reborncore.common.blocks.BlockMachineBase;
import techreborn.TechReborn;
import techreborn.client.EGui;
import techreborn.tiles.machine.tier1.TileCompressor;
import techreborn.utils.TechRebornCreativeTab;
public class BlockCompressor extends BlockMachineBase {
public BlockCompressor() {
super();
setCreativeTab(TechRebornCreativeTab.instance);
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, "machines/tier1_machines"));
}

View file

@ -33,13 +33,11 @@ import reborncore.common.blocks.BlockMachineBase;
import techreborn.TechReborn;
import techreborn.client.EGui;
import techreborn.tiles.machine.tier1.TileElectricFurnace;
import techreborn.utils.TechRebornCreativeTab;
public class BlockElectricFurnace extends BlockMachineBase {
public BlockElectricFurnace() {
super();
setCreativeTab(TechRebornCreativeTab.instance);
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, "machines/tier1_machines"));
}

View file

@ -33,13 +33,11 @@ import reborncore.common.blocks.BlockMachineBase;
import techreborn.TechReborn;
import techreborn.client.EGui;
import techreborn.tiles.machine.tier1.TileExtractor;
import techreborn.utils.TechRebornCreativeTab;
public class BlockExtractor extends BlockMachineBase {
public BlockExtractor() {
super();
setCreativeTab(TechRebornCreativeTab.instance);
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, "machines/tier1_machines"));
}

View file

@ -33,13 +33,11 @@ import reborncore.common.blocks.BlockMachineBase;
import techreborn.TechReborn;
import techreborn.client.EGui;
import techreborn.tiles.machine.tier1.TileGrinder;
import techreborn.utils.TechRebornCreativeTab;
public class BlockGrinder extends BlockMachineBase {
public BlockGrinder() {
super();
setCreativeTab(TechRebornCreativeTab.instance);
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, "machines/tier1_machines"));
}

View file

@ -59,8 +59,6 @@ import reborncore.common.util.StringUtils;
import techreborn.TechReborn;
import techreborn.utils.MessageIDs;
import techreborn.tiles.machine.tier1.TilePlayerDectector;
import techreborn.utils.TechRebornCreativeTab;
import java.util.List;
import java.util.Random;
@ -72,7 +70,6 @@ public class BlockPlayerDetector extends BlockMachineBase {
public BlockPlayerDetector() {
super(true);
setCreativeTab(TechRebornCreativeTab.instance);
this.setDefaultState(this.getStateFromMeta(0));
for (int i = 0; i < types.length; i++) {
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, i, "machines/tier1_machines").setInvVariant("type=" + types[i]));

View file

@ -33,13 +33,11 @@ import reborncore.common.blocks.BlockMachineBase;
import techreborn.TechReborn;
import techreborn.client.EGui;
import techreborn.tiles.machine.tier1.TileRecycler;
import techreborn.utils.TechRebornCreativeTab;
public class BlockRecycler extends BlockMachineBase {
public BlockRecycler() {
super();
setCreativeTab(TechRebornCreativeTab.instance);
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, "machines/tier1_machines"));
}

View file

@ -33,13 +33,11 @@ import reborncore.common.blocks.BlockMachineBase;
import techreborn.TechReborn;
import techreborn.client.EGui;
import techreborn.tiles.machine.tier1.TileRollingMachine;
import techreborn.utils.TechRebornCreativeTab;
public class BlockRollingMachine extends BlockMachineBase {
public BlockRollingMachine() {
super();
setCreativeTab(TechRebornCreativeTab.instance);
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, "machines/tier1_machines"));
}

View file

@ -33,13 +33,11 @@ import reborncore.common.blocks.BlockMachineBase;
import techreborn.TechReborn;
import techreborn.client.EGui;
import techreborn.tiles.machine.tier1.TileScrapboxinator;
import techreborn.utils.TechRebornCreativeTab;
public class BlockScrapboxinator extends BlockMachineBase {
public BlockScrapboxinator() {
super();
setCreativeTab(TechRebornCreativeTab.instance);
RebornModelRegistry.registerModel(new ModelCompound(TechReborn.MOD_ID, this, "machines/tier1_machines"));
}