Cleanup and warnings

This commit is contained in:
drcrazy 2019-07-31 02:41:54 +03:00
parent d1178df673
commit 5406d08f5d
14 changed files with 29 additions and 49 deletions

View file

@ -117,7 +117,6 @@ public class TechReborn implements ModInitializer {
proxy.postInit();
ModRecipes.postInit();
CommandRegistry.INSTANCE.register(false, dispatcher -> dispatcher.register(CommandManager.literal("recipe").executes(context -> {
try {

View file

@ -66,7 +66,7 @@ public class GuiAlloyFurnace extends AbstractContainerScreen<BuiltContainer> {
@Override
protected void drawForeground(final int p_146979_1_, final int p_146979_2_) {
final String name = I18n.translate("blockEntity.techreborn.iron_alloy_furnace.name");
final String name = I18n.translate("block.techreborn.iron_alloy_furnace");
this.font.draw(name, this.containerWidth / 2 - this.font.getStringWidth(name) / 2, 6,
4210752);
this.font.draw(I18n.translate("container.inventory", new Object[0]), 8,

View file

@ -29,7 +29,6 @@ import net.minecraft.block.BlockState;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import reborncore.ClientProxy;
import reborncore.RebornCoreClient;
import reborncore.client.gui.builder.GuiBase;
import reborncore.client.gui.builder.widget.GuiButtonExtended;

View file

@ -31,10 +31,11 @@ import net.minecraft.client.resource.language.I18n;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.text.LiteralText;
import net.minecraft.util.Identifier;
import reborncore.client.containerBuilder.builder.BuiltContainer;
import reborncore.client.gui.builder.widget.GuiButtonSimple;
import techreborn.blockentity.machine.tier3.ChunkLoaderBlockEntity;
public class GuiChunkLoader extends AbstractContainerScreen {
public class GuiChunkLoader extends AbstractContainerScreen<BuiltContainer> {
private static final Identifier texture = new Identifier("techreborn",
"textures/gui/industrial_chunkloader.png");
@ -80,7 +81,7 @@ public class GuiChunkLoader extends AbstractContainerScreen {
@Override
protected void drawForeground(final int p_146979_1_, final int p_146979_2_) {
final String name = I18n.translate("blockEntity.techreborn:chunk_loader.name");
final String name = I18n.translate("block.techreborn.chunk_loader");
this.font.draw(name, this.containerWidth / 2 - this.font.getStringWidth(name) / 2, 6,
4210752);
this.font.draw(I18n.translate("container.inventory", new Object[0]), 8,

View file

@ -29,7 +29,6 @@ import net.minecraft.block.BlockState;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import reborncore.ClientProxy;
import reborncore.RebornCoreClient;
import reborncore.client.gui.builder.GuiBase;
import reborncore.client.gui.builder.widget.GuiButtonExtended;

View file

@ -28,7 +28,6 @@ import net.minecraft.block.BlockState;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import reborncore.ClientProxy;
import reborncore.RebornCoreClient;
import reborncore.client.gui.builder.GuiBase;
import reborncore.client.gui.builder.widget.GuiButtonExtended;

View file

@ -29,7 +29,6 @@ import net.minecraft.client.gui.widget.ButtonWidget;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.BlockPos;
import org.apache.commons.lang3.tuple.Pair;
import reborncore.ClientProxy;
import reborncore.RebornCoreClient;
import reborncore.client.gui.builder.GuiBase;
import reborncore.client.gui.builder.widget.GuiButtonExtended;

View file

@ -28,7 +28,6 @@ import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.block.BlockState;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.BlockPos;
import reborncore.ClientProxy;
import reborncore.RebornCoreClient;
import reborncore.client.gui.builder.GuiBase;
import reborncore.client.gui.builder.widget.GuiButtonExtended;

View file

@ -29,7 +29,6 @@ import net.minecraft.block.Blocks;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import reborncore.ClientProxy;
import reborncore.RebornCoreClient;
import reborncore.client.gui.builder.GuiBase;
import reborncore.client.gui.builder.widget.GuiButtonExtended;

View file

@ -29,7 +29,6 @@ import net.minecraft.block.Blocks;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import reborncore.ClientProxy;
import reborncore.RebornCoreClient;
import reborncore.client.gui.builder.GuiBase;
import reborncore.client.gui.builder.widget.GuiButtonExtended;

View file

@ -72,7 +72,7 @@ public class GuiIronFurnace extends GuiBase {
@Override
protected void drawForeground(int mouseX, int mouseY) {
final String name = I18n.translate("blockEntity.techreborn.iron_furnace.name");
final String name = I18n.translate("block.techreborn.iron_furnace");
font.draw(name, containerWidth / 2 - font.getStringWidth(name) / 2, 6, 4210752);
font.draw(I18n.translate("container.inventory", new Object[0]), 8, containerHeight - 96 + 2, 4210752);

View file

@ -27,7 +27,6 @@ package techreborn.client.gui;
import net.minecraft.block.BlockState;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.BlockPos;
import reborncore.ClientProxy;
import reborncore.RebornCoreClient;
import reborncore.client.gui.builder.GuiBase;
import reborncore.client.gui.builder.widget.GuiButtonExtended;

View file

@ -24,15 +24,11 @@
package techreborn.init;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Identifier;
import reborncore.common.crafting.RebornRecipe;
import reborncore.common.crafting.RebornRecipeType;
import reborncore.common.crafting.RecipeManager;
import reborncore.common.registration.RebornRegister;
import net.minecraft.fluid.Fluid;
import io.github.prospector.silk.fluid.FluidInstance;
import reborncore.common.fluid.FluidUtil;
import techreborn.TechReborn;
import techreborn.api.recipe.recipes.BlastFurnaceRecipe;
import techreborn.api.recipe.recipes.IndustrialGrinderRecipe;
@ -66,30 +62,22 @@ public class ModRecipes {
/*
ExtractorRecipes.init();
RollingMachineRecipes.init();
FluidGeneratorRecipes.init();
IndustrialGrinderRecipes.init();
IndustrialCentrifugeRecipes.init();
IndustrialElectrolyzerRecipes.init();
ImplosionCompressorRecipes.init();
ScrapboxRecipes.init();
ChemicalReactorRecipes.init();
FusionReactorRecipes.init();
DistillationTowerRecipes.init();
FluidReplicatorRecipes.init();
addVacuumFreezerRecipes();
addGrinderRecipes();
addCompressorRecipes();
*/
}
public static void postInit() {
//IndustrialSawmillRecipes.init();
}
}

View file

@ -42,28 +42,28 @@ public class ImplosionCompressorRecipes extends RecipeMethods {
// register(getOre("dustPeridot", 4), getMaterial("peridot", 3, Type.GEM), 12);
// register(getOre("dustRedGarnet", 4), getMaterial("red_garnet", 3, Type.GEM), 8);
// register(getOre("dustYellowGarnet", 4), getMaterial("yellow_garnet", 3, Type.GEM), 8);
if (oresExist("dustApatite", "gemApatite")) {
register(getOre("dustApatite", 4), getOre("gemApatite", 3), 12);
}
if (oresExist("dustCertusQuartz", "crystalCertusQuartz")) {
register(getOre("dustCertusQuartz", 4), getOre("crystalCertusQuartz", 3), 12);
}
if (oresExist("dustAmethyst", "gemAmethyst")) {
register(getOre("dustAmethyst", 4), getOre("gemAmethyst", 3), 12);
}
if (oresExist("dustTopaz", "gemTopaz")) {
register(getOre("dustTopaz", 4), getOre("gemTopaz", 3), 12);
}
if (oresExist("dustTanzanite", "gemTanzanite")) {
register(getOre("dustTanzanite", 4), getOre("gemTanzanite", 3), 12);
}
if (oresExist("dustMalachite", "gemMalachite")) {
register(getOre("dustMalachite", 4), getOre("gemMalachite", 3), 12);
}
// if (oresExist("dustApatite", "gemApatite")) {
// register(getOre("dustApatite", 4), getOre("gemApatite", 3), 12);
// }
//
// if (oresExist("dustCertusQuartz", "crystalCertusQuartz")) {
// register(getOre("dustCertusQuartz", 4), getOre("crystalCertusQuartz", 3), 12);
// }
// if (oresExist("dustAmethyst", "gemAmethyst")) {
// register(getOre("dustAmethyst", 4), getOre("gemAmethyst", 3), 12);
// }
//
// if (oresExist("dustTopaz", "gemTopaz")) {
// register(getOre("dustTopaz", 4), getOre("gemTopaz", 3), 12);
// }
//
// if (oresExist("dustTanzanite", "gemTanzanite")) {
// register(getOre("dustTanzanite", 4), getOre("gemTanzanite", 3), 12);
// }
//
// if (oresExist("dustMalachite", "gemMalachite")) {
// register(getOre("dustMalachite", 4), getOre("gemMalachite", 3), 12);
// }
// register(getOre("blockRedstone", 9), getOre("dustRedGarnet", 4), 4);
}