General code cleanup
This commit is contained in:
parent
95b49e5e23
commit
7f8ce535a7
17 changed files with 21 additions and 58 deletions
|
@ -131,7 +131,7 @@ public class Core {
|
|||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void init(FMLInitializationEvent event) throws IllegalAccessException, InstantiationException {
|
||||
public void init(FMLInitializationEvent event) {
|
||||
// Registers Chest Loot
|
||||
ModLoot.init();
|
||||
MinecraftForge.EVENT_BUS.register(new ModLoot());
|
||||
|
@ -168,7 +168,7 @@ public class Core {
|
|||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void postinit(FMLPostInitializationEvent event) throws Exception {
|
||||
public void postinit(FMLPostInitializationEvent event) {
|
||||
proxy.postInit(event);
|
||||
|
||||
ModRecipes.postInit();
|
||||
|
|
|
@ -45,11 +45,6 @@ public class GuiAlloyFurnace extends GuiContainer {
|
|||
this.alloyfurnace = alloyFurnace;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initGui() {
|
||||
super.initGui();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void drawGuiContainerBackgroundLayer(final float p_146976_1_, final int p_146976_2_, final int p_146976_3_) {
|
||||
this.drawDefaultBackground();
|
||||
|
|
|
@ -55,12 +55,6 @@ public class GuiFusionReactor extends GuiBase {
|
|||
this.tile = tile;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initGui() {
|
||||
super.initGui();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void drawGuiContainerBackgroundLayer(final float partialTicks, final int mouseX, final int mouseY) {
|
||||
super.drawGuiContainerBackgroundLayer(partialTicks, mouseX, mouseY);
|
||||
|
|
|
@ -150,7 +150,7 @@ public class GuiSlotConfiguration {
|
|||
return machineBase;
|
||||
}
|
||||
|
||||
public static boolean mouseClicked(int mouseX, int mouseY, int mouseButton, GuiBase guiBase) throws IOException {
|
||||
public static boolean mouseClicked(int mouseX, int mouseY, int mouseButton, GuiBase guiBase) {
|
||||
if (mouseButton == 0) {
|
||||
for (ConfigSlotElement configSlotElement : getVisibleElements()) {
|
||||
for (ElementBase element : configSlotElement.elements) {
|
||||
|
|
|
@ -133,7 +133,7 @@ public class ModelDynamicCell implements IModel {
|
|||
}
|
||||
|
||||
@Override
|
||||
public IModel loadModel(ResourceLocation modelLocation) throws Exception {
|
||||
public IModel loadModel(ResourceLocation modelLocation) {
|
||||
return MODEL;
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ public class TechRebornDevCommand extends CommandBase {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException {
|
||||
public void execute(MinecraftServer server, ICommandSender sender, String[] args) {
|
||||
if (args.length == 0) {
|
||||
sender.sendMessage(new TextComponentString("You need to use arguments, see /trdev help"));
|
||||
} else if ("help".equals(args[0])) {
|
||||
|
|
|
@ -158,7 +158,7 @@ public class ModItems {
|
|||
public static Item DEBUG;
|
||||
public static DynamicCell CELL;
|
||||
|
||||
public static void init() throws InstantiationException, IllegalAccessException {
|
||||
public static void init() {
|
||||
GEMS = new ItemGems();
|
||||
registerItem(GEMS, "gem");
|
||||
INGOTS = new ItemIngots();
|
||||
|
|
|
@ -106,12 +106,6 @@ public class ItemChainsaw extends ItemAxe implements IEnergyItemInfo {
|
|||
return true;
|
||||
}
|
||||
|
||||
// Item
|
||||
@Override
|
||||
public boolean onBlockStartBreak(ItemStack itemstack, BlockPos pos, EntityPlayer player) {
|
||||
return super.onBlockStartBreak(itemstack, pos, player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getDurabilityForDisplay(ItemStack stack) {
|
||||
return 1 - ItemUtils.getPowerForDurabilityBar(stack);
|
||||
|
|
|
@ -47,13 +47,13 @@ public class PacketAesu implements INetworkPacket<PacketAesu> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void writeData(ExtendedPacketBuffer out) throws IOException {
|
||||
public void writeData(ExtendedPacketBuffer out) {
|
||||
out.writeBlockPos(pos);
|
||||
out.writeInt(buttonID);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readData(ExtendedPacketBuffer in) throws IOException {
|
||||
public void readData(ExtendedPacketBuffer in) {
|
||||
this.pos = in.readBlockPos();
|
||||
this.buttonID = in.readInt();
|
||||
}
|
||||
|
|
|
@ -47,13 +47,13 @@ public class PacketFusionControlSize implements INetworkPacket<PacketFusionContr
|
|||
}
|
||||
|
||||
@Override
|
||||
public void writeData(ExtendedPacketBuffer buffer) throws IOException {
|
||||
public void writeData(ExtendedPacketBuffer buffer) {
|
||||
buffer.writeInt(sizeDelta);
|
||||
buffer.writeBlockPos(pos);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readData(ExtendedPacketBuffer buffer) throws IOException {
|
||||
public void readData(ExtendedPacketBuffer buffer) {
|
||||
sizeDelta = buffer.readInt();
|
||||
pos = buffer.readBlockPos();
|
||||
}
|
||||
|
|
|
@ -46,13 +46,13 @@ public class PacketIdsu implements INetworkPacket<PacketIdsu> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void writeData(ExtendedPacketBuffer out) throws IOException {
|
||||
public void writeData(ExtendedPacketBuffer out) {
|
||||
out.writeBlockPos(pos);
|
||||
out.writeInt(buttonID);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readData(ExtendedPacketBuffer in) throws IOException {
|
||||
public void readData(ExtendedPacketBuffer in) {
|
||||
this.pos = in.readBlockPos();
|
||||
buttonID = in.readInt();
|
||||
}
|
||||
|
|
|
@ -47,13 +47,13 @@ public class PacketRollingMachineLock implements INetworkPacket<PacketRollingMac
|
|||
}
|
||||
|
||||
@Override
|
||||
public void writeData(ExtendedPacketBuffer buffer) throws IOException {
|
||||
public void writeData(ExtendedPacketBuffer buffer) {
|
||||
buffer.writeBlockPos(machinePos);
|
||||
buffer.writeBoolean(locked);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readData(ExtendedPacketBuffer buffer) throws IOException {
|
||||
public void readData(ExtendedPacketBuffer buffer) {
|
||||
machinePos = buffer.readBlockPos();
|
||||
locked = buffer.readBoolean();
|
||||
}
|
||||
|
|
|
@ -58,14 +58,14 @@ public class PacketSetRecipe implements INetworkPacket<PacketSetRecipe> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void writeData(ExtendedPacketBuffer buffer) throws IOException {
|
||||
public void writeData(ExtendedPacketBuffer buffer) {
|
||||
buffer.writeBlockPos(pos);
|
||||
buffer.writeResourceLocation(recipe);
|
||||
buffer.writeBoolean(custom);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readData(ExtendedPacketBuffer buffer) throws IOException {
|
||||
public void readData(ExtendedPacketBuffer buffer) {
|
||||
pos = buffer.readBlockPos();
|
||||
recipe = buffer.readResourceLocation();
|
||||
custom = buffer.readBoolean();
|
||||
|
|
|
@ -57,27 +57,27 @@ public class TileMachineCasing extends RectangularMultiblockTileEntityBase
|
|||
}
|
||||
|
||||
@Override
|
||||
public void isGoodForFrame() throws MultiblockValidationException {
|
||||
public void isGoodForFrame() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void isGoodForSides() throws MultiblockValidationException {
|
||||
public void isGoodForSides() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void isGoodForTop() throws MultiblockValidationException {
|
||||
public void isGoodForTop() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void isGoodForBottom() throws MultiblockValidationException {
|
||||
public void isGoodForBottom() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void isGoodForInterior() throws MultiblockValidationException {
|
||||
public void isGoodForInterior() {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -50,11 +50,6 @@ public class TileCreativeSolarPanel extends TilePowerAcceptor implements IToolDr
|
|||
setEnergy(getMaxPower());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInfo(final List<String> info, final boolean isRealTile) {
|
||||
super.addInfo(info, isRealTile);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getBaseMaxPower() {
|
||||
return 1_000_000;
|
||||
|
|
|
@ -128,11 +128,6 @@ public class TileSolarPanel extends TilePowerAcceptor implements IToolDrop {
|
|||
return new ItemStack(ModBlocks.SOLAR_PANEL, 1, panel.ordinal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void rotate(Rotation rotationIn) {
|
||||
return;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound tag) {
|
||||
if(tag.hasKey("panelType")){
|
||||
|
|
|
@ -294,16 +294,6 @@ public class TileRollingMachine extends TilePowerAcceptor
|
|||
return tagCompound;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invalidate() {
|
||||
super.invalidate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onChunkUnload() {
|
||||
super.onChunkUnload();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Inventory getInventory() {
|
||||
return inventory;
|
||||
|
|
Loading…
Reference in a new issue