Renames to match yarn changes
This commit is contained in:
parent
5b1e68d093
commit
99b2755887
94 changed files with 415 additions and 418 deletions
|
@ -27,7 +27,7 @@ package techreborn.client.gui;
|
|||
import com.mojang.blaze3d.systems.RenderSystem;
|
||||
import net.minecraft.client.gui.screen.Screen;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonUpDown;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonUpDown.UpDownButtonType;
|
||||
|
@ -36,12 +36,12 @@ import reborncore.common.powerSystem.PowerSystem;
|
|||
import techreborn.blockentity.storage.energy.AdjustableSUBlockEntity;
|
||||
import techreborn.packets.ServerboundPackets;
|
||||
|
||||
public class GuiAESU extends GuiBase<BuiltContainer> {
|
||||
public class GuiAESU extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
AdjustableSUBlockEntity blockEntity;
|
||||
|
||||
public GuiAESU(int syncID, final PlayerEntity player, final AdjustableSUBlockEntity aesu) {
|
||||
super(player, aesu, aesu.createContainer(syncID, player));
|
||||
super(player, aesu, aesu.createScreenHandler(syncID, player));
|
||||
this.blockEntity = aesu;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.machine.iron.IronAlloyFurnaceBlockEntity;
|
||||
|
||||
public class GuiAlloyFurnace extends GuiBase<BuiltContainer> {
|
||||
public class GuiAlloyFurnace extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
IronAlloyFurnaceBlockEntity blockEntity;
|
||||
|
||||
public GuiAlloyFurnace(int syncID, PlayerEntity player, IronAlloyFurnaceBlockEntity alloyFurnace) {
|
||||
super(player, alloyFurnace, alloyFurnace.createContainer(syncID, player));
|
||||
super(player, alloyFurnace, alloyFurnace.createScreenHandler(syncID, player));
|
||||
this.blockEntity = alloyFurnace;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.machine.tier1.AlloySmelterBlockEntity;
|
||||
|
||||
public class GuiAlloySmelter extends GuiBase<BuiltContainer> {
|
||||
public class GuiAlloySmelter extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
AlloySmelterBlockEntity blockEntity;
|
||||
|
||||
public GuiAlloySmelter(int syncID, final PlayerEntity player, final AlloySmelterBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
|
||||
}
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.machine.tier1.AssemblingMachineBlockEntity;
|
||||
|
||||
public class GuiAssemblingMachine extends GuiBase<BuiltContainer> {
|
||||
public class GuiAssemblingMachine extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
AssemblingMachineBlockEntity blockEntity;
|
||||
|
||||
public GuiAssemblingMachine(int syncID, final PlayerEntity player, final AssemblingMachineBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ import net.minecraft.entity.player.PlayerEntity;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.recipe.CraftingRecipe;
|
||||
import net.minecraft.util.Identifier;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import reborncore.common.network.NetworkManager;
|
||||
|
@ -39,14 +39,14 @@ import techreborn.blockentity.machine.tier1.AutoCraftingTableBlockEntity;
|
|||
/**
|
||||
* Created by modmuss50 on 20/06/2017.
|
||||
*/
|
||||
public class GuiAutoCrafting extends GuiBase<BuiltContainer> {
|
||||
public class GuiAutoCrafting extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
static final Identifier RECIPE_BOOK_TEXTURE = new Identifier("textures/gui/recipe_book.png");
|
||||
boolean showGui = true;
|
||||
AutoCraftingTableBlockEntity blockEntityAutoCraftingTable;
|
||||
|
||||
public GuiAutoCrafting(int syncID, PlayerEntity player, AutoCraftingTableBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntityAutoCraftingTable = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,17 +26,17 @@ package techreborn.client.gui;
|
|||
|
||||
import com.mojang.blaze3d.systems.RenderSystem;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.common.powerSystem.PowerSystem;
|
||||
import techreborn.blockentity.storage.energy.LowVoltageSUBlockEntity;
|
||||
|
||||
public class GuiBatbox extends GuiBase<BuiltContainer> {
|
||||
public class GuiBatbox extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
LowVoltageSUBlockEntity blockEntity;
|
||||
|
||||
public GuiBatbox(int syncID, final PlayerEntity player, final LowVoltageSUBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ 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.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
|
@ -37,13 +37,13 @@ import reborncore.client.multiblock.Multiblock;
|
|||
import techreborn.blockentity.machine.multiblock.IndustrialBlastFurnaceBlockEntity;
|
||||
import techreborn.init.TRContent;
|
||||
|
||||
public class GuiBlastFurnace extends GuiBase<BuiltContainer> {
|
||||
public class GuiBlastFurnace extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
public IndustrialBlastFurnaceBlockEntity blockEntity;
|
||||
boolean hasMultiBlock;
|
||||
|
||||
public GuiBlastFurnace(int syncID, final PlayerEntity player, final IndustrialBlastFurnaceBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.machine.tier3.IndustrialCentrifugeBlockEntity;
|
||||
|
||||
public class GuiCentrifuge extends GuiBase<BuiltContainer> {
|
||||
public class GuiCentrifuge extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
IndustrialCentrifugeBlockEntity blockEntity;
|
||||
|
||||
public GuiCentrifuge(int syncID, final PlayerEntity player, final IndustrialCentrifugeBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,16 +25,16 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import techreborn.blockentity.machine.misc.ChargeOMatBlockEntity;
|
||||
|
||||
public class GuiChargeBench extends GuiBase<BuiltContainer> {
|
||||
public class GuiChargeBench extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
ChargeOMatBlockEntity blockEntity;
|
||||
|
||||
public GuiChargeBench(int syncID, final PlayerEntity player, final ChargeOMatBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.machine.tier1.ChemicalReactorBlockEntity;
|
||||
|
||||
public class GuiChemicalReactor extends GuiBase<BuiltContainer> {
|
||||
public class GuiChemicalReactor extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
ChemicalReactorBlockEntity blockEntity;
|
||||
|
||||
public GuiChemicalReactor(int syncID, final PlayerEntity player, final ChemicalReactorBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ package techreborn.client.gui;
|
|||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.ClientChunkManager;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonSimple;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonUpDown;
|
||||
|
@ -35,12 +35,12 @@ import reborncore.common.network.NetworkManager;
|
|||
import techreborn.blockentity.machine.tier3.ChunkLoaderBlockEntity;
|
||||
import techreborn.packets.ServerboundPackets;
|
||||
|
||||
public class GuiChunkLoader extends GuiBase<BuiltContainer> {
|
||||
public class GuiChunkLoader extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
ChunkLoaderBlockEntity blockEntity;
|
||||
|
||||
public GuiChunkLoader(int syncID, PlayerEntity player, ChunkLoaderBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.machine.tier1.CompressorBlockEntity;
|
||||
|
||||
public class GuiCompressor extends GuiBase<BuiltContainer> {
|
||||
public class GuiCompressor extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
CompressorBlockEntity blockEntity;
|
||||
|
||||
public GuiCompressor(int syncID, final PlayerEntity player, final CompressorBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,18 +27,18 @@ package techreborn.client.gui;
|
|||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.generator.advanced.DieselGeneratorBlockEntity;
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
public class GuiDieselGenerator extends GuiBase<BuiltContainer> {
|
||||
public class GuiDieselGenerator extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
DieselGeneratorBlockEntity blockEntity;
|
||||
|
||||
public GuiDieselGenerator(int syncID, final PlayerEntity player, final DieselGeneratorBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ 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.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
|
@ -37,12 +37,12 @@ import reborncore.client.multiblock.Multiblock;
|
|||
import techreborn.blockentity.machine.multiblock.DistillationTowerBlockEntity;
|
||||
import techreborn.init.TRContent;
|
||||
|
||||
public class GuiDistillationTower extends GuiBase<BuiltContainer> {
|
||||
public class GuiDistillationTower extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
public DistillationTowerBlockEntity blockEntity;
|
||||
|
||||
public GuiDistillationTower(int syncID, final PlayerEntity player, final DistillationTowerBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.machine.tier1.ElectricFurnaceBlockEntity;
|
||||
|
||||
public class GuiElectricFurnace extends GuiBase<BuiltContainer> {
|
||||
public class GuiElectricFurnace extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
ElectricFurnaceBlockEntity blockEntity;
|
||||
|
||||
public GuiElectricFurnace(int syncID, final PlayerEntity player, final ElectricFurnaceBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.machine.tier1.ExtractorBlockEntity;
|
||||
|
||||
public class GuiExtractor extends GuiBase<BuiltContainer> {
|
||||
public class GuiExtractor extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
ExtractorBlockEntity blockEntity;
|
||||
|
||||
public GuiExtractor(int syncID, final PlayerEntity player, final ExtractorBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ 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.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
|
@ -40,12 +40,12 @@ import techreborn.init.TRContent;
|
|||
* @author drcrazy
|
||||
*
|
||||
*/
|
||||
public class GuiFluidReplicator extends GuiBase<BuiltContainer> {
|
||||
public class GuiFluidReplicator extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
FluidReplicatorBlockEntity blockEntity;
|
||||
|
||||
public GuiFluidReplicator(int syncID, final PlayerEntity player, final FluidReplicatorBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ 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.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonUpDown;
|
||||
|
@ -47,11 +47,11 @@ import techreborn.packets.ServerboundPackets;
|
|||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
public class GuiFusionReactor extends GuiBase<BuiltContainer> {
|
||||
public class GuiFusionReactor extends GuiBase<BuiltScreenHandler> {
|
||||
FusionControlComputerBlockEntity blockEntity;
|
||||
|
||||
public GuiFusionReactor(int syncID, final PlayerEntity player, final FusionControlComputerBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.generator.advanced.GasTurbineBlockEntity;
|
||||
|
||||
public class GuiGasTurbine extends GuiBase<BuiltContainer> {
|
||||
public class GuiGasTurbine extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
GasTurbineBlockEntity blockEntity;
|
||||
|
||||
public GuiGasTurbine(int syncID, final PlayerEntity player, final GasTurbineBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,16 +25,16 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import techreborn.blockentity.generator.basic.SolidFuelGeneratorBlockEntity;
|
||||
|
||||
public class GuiGenerator extends GuiBase<BuiltContainer> {
|
||||
public class GuiGenerator extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
SolidFuelGeneratorBlockEntity blockEntity;
|
||||
|
||||
public GuiGenerator(int syncID, final PlayerEntity player, final SolidFuelGeneratorBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ import net.minecraft.state.property.Properties;
|
|||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.Direction;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
import reborncore.client.multiblock.Multiblock;
|
||||
|
@ -43,12 +43,12 @@ import techreborn.init.TRContent;
|
|||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class GuiGreenhouseController extends GuiBase<BuiltContainer> {
|
||||
public class GuiGreenhouseController extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
GreenhouseControllerBlockEntity blockEntity;
|
||||
|
||||
public GuiGreenhouseController(int syncID, final PlayerEntity player, final GreenhouseControllerBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,17 +26,17 @@ package techreborn.client.gui;
|
|||
|
||||
import com.mojang.blaze3d.systems.RenderSystem;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.common.powerSystem.PowerSystem;
|
||||
import techreborn.blockentity.storage.energy.idsu.InterdimensionalSUBlockEntity;
|
||||
|
||||
public class GuiIDSU extends GuiBase<BuiltContainer> {
|
||||
public class GuiIDSU extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
InterdimensionalSUBlockEntity idsu;
|
||||
|
||||
public GuiIDSU(int syncID, PlayerEntity player, InterdimensionalSUBlockEntity blockEntityIDSU) {
|
||||
super(player, blockEntityIDSU, blockEntityIDSU.createContainer(syncID, player));
|
||||
super(player, blockEntityIDSU, blockEntityIDSU.createScreenHandler(syncID, player));
|
||||
idsu = blockEntityIDSU;
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ import com.mojang.blaze3d.systems.RenderSystem;
|
|||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
|
@ -36,12 +36,12 @@ import reborncore.client.multiblock.Multiblock;
|
|||
import techreborn.blockentity.machine.multiblock.ImplosionCompressorBlockEntity;
|
||||
import techreborn.init.TRContent;
|
||||
|
||||
public class GuiImplosionCompressor extends GuiBase<BuiltContainer> {
|
||||
public class GuiImplosionCompressor extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
ImplosionCompressorBlockEntity blockEntity;
|
||||
|
||||
public GuiImplosionCompressor(int syncID, final PlayerEntity player, final ImplosionCompressorBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.machine.tier1.IndustrialElectrolyzerBlockEntity;
|
||||
|
||||
public class GuiIndustrialElectrolyzer extends GuiBase<BuiltContainer> {
|
||||
public class GuiIndustrialElectrolyzer extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
IndustrialElectrolyzerBlockEntity blockEntity;
|
||||
|
||||
public GuiIndustrialElectrolyzer(int syncID, final PlayerEntity player, final IndustrialElectrolyzerBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ 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.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
|
@ -37,12 +37,12 @@ import reborncore.client.multiblock.Multiblock;
|
|||
import techreborn.blockentity.machine.multiblock.IndustrialGrinderBlockEntity;
|
||||
import techreborn.init.TRContent;
|
||||
|
||||
public class GuiIndustrialGrinder extends GuiBase<BuiltContainer> {
|
||||
public class GuiIndustrialGrinder extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
IndustrialGrinderBlockEntity blockEntity;
|
||||
|
||||
public GuiIndustrialGrinder(int syncID, final PlayerEntity player, final IndustrialGrinderBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ 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.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
|
@ -37,12 +37,12 @@ import reborncore.client.multiblock.Multiblock;
|
|||
import techreborn.blockentity.machine.multiblock.IndustrialSawmillBlockEntity;
|
||||
import techreborn.init.TRContent;
|
||||
|
||||
public class GuiIndustrialSawmill extends GuiBase<BuiltContainer> {
|
||||
public class GuiIndustrialSawmill extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
IndustrialSawmillBlockEntity blockEntity;
|
||||
|
||||
public GuiIndustrialSawmill(int syncID, final PlayerEntity player, final IndustrialSawmillBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ import net.minecraft.client.MinecraftClient;
|
|||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.Items;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonSimple;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
|
@ -42,12 +42,12 @@ import techreborn.blockentity.machine.iron.IronFurnaceBlockEntity;
|
|||
import techreborn.packets.ServerboundPackets;
|
||||
import techreborn.utils.PlayerUtils;
|
||||
|
||||
public class GuiIronFurnace extends GuiBase<BuiltContainer> {
|
||||
public class GuiIronFurnace extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
IronFurnaceBlockEntity blockEntity;
|
||||
|
||||
public GuiIronFurnace(int syncID, PlayerEntity player, IronFurnaceBlockEntity furnace) {
|
||||
super(player, furnace, furnace.createContainer(syncID, player));
|
||||
super(player, furnace, furnace.createScreenHandler(syncID, player));
|
||||
this.blockEntity = furnace;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,17 +26,17 @@ package techreborn.client.gui;
|
|||
|
||||
import com.mojang.blaze3d.systems.RenderSystem;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.common.powerSystem.PowerSystem;
|
||||
import techreborn.blockentity.storage.energy.lesu.LapotronicSUBlockEntity;
|
||||
|
||||
public class GuiLESU extends GuiBase<BuiltContainer> {
|
||||
public class GuiLESU extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
LapotronicSUBlockEntity blockEntity;
|
||||
|
||||
public GuiLESU(int syncID, final PlayerEntity player, final LapotronicSUBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,17 +26,17 @@ package techreborn.client.gui;
|
|||
|
||||
import com.mojang.blaze3d.systems.RenderSystem;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.common.powerSystem.PowerSystem;
|
||||
import techreborn.blockentity.storage.energy.MediumVoltageSUBlockEntity;
|
||||
|
||||
public class GuiMFE extends GuiBase<BuiltContainer> {
|
||||
public class GuiMFE extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
MediumVoltageSUBlockEntity mfe;
|
||||
|
||||
public GuiMFE(int syncID, final PlayerEntity player, final MediumVoltageSUBlockEntity mfe) {
|
||||
super(player, mfe, mfe.createContainer(syncID, player));
|
||||
super(player, mfe, mfe.createScreenHandler(syncID, player));
|
||||
this.mfe = mfe;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,17 +26,17 @@ package techreborn.client.gui;
|
|||
|
||||
import com.mojang.blaze3d.systems.RenderSystem;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.common.powerSystem.PowerSystem;
|
||||
import techreborn.blockentity.storage.energy.HighVoltageSUBlockEntity;
|
||||
|
||||
public class GuiMFSU extends GuiBase<BuiltContainer> {
|
||||
public class GuiMFSU extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
HighVoltageSUBlockEntity mfsu;
|
||||
|
||||
public GuiMFSU(int syncID, final PlayerEntity player, final HighVoltageSUBlockEntity mfsu) {
|
||||
super(player, mfsu, mfsu.createContainer(syncID, player));
|
||||
super(player, mfsu, mfsu.createScreenHandler(syncID, player));
|
||||
this.mfsu = mfsu;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.machine.tier3.MatterFabricatorBlockEntity;
|
||||
|
||||
public class GuiMatterFabricator extends GuiBase<BuiltContainer> {
|
||||
public class GuiMatterFabricator extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
MatterFabricatorBlockEntity blockEntity;
|
||||
|
||||
public GuiMatterFabricator(int syncID, final PlayerEntity player, final MatterFabricatorBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ package techreborn.client.gui;
|
|||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.generator.PlasmaGeneratorBlockEntity;
|
||||
|
@ -37,7 +37,7 @@ import techreborn.blockentity.generator.PlasmaGeneratorBlockEntity;
|
|||
*
|
||||
*/
|
||||
@Environment(EnvType.CLIENT)
|
||||
public class GuiPlasmaGenerator extends GuiBase<BuiltContainer> {
|
||||
public class GuiPlasmaGenerator extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
/**
|
||||
* @param player
|
||||
|
@ -47,7 +47,7 @@ public class GuiPlasmaGenerator extends GuiBase<BuiltContainer> {
|
|||
PlasmaGeneratorBlockEntity blockEntity;
|
||||
|
||||
public GuiPlasmaGenerator(int syncID, final PlayerEntity player, final PlasmaGeneratorBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.machine.tier1.RecyclerBlockEntity;
|
||||
|
||||
public class GuiRecycler extends GuiBase<BuiltContainer> {
|
||||
public class GuiRecycler extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
RecyclerBlockEntity blockEntity;
|
||||
|
||||
public GuiRecycler(int syncID, final PlayerEntity player, final RecyclerBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,19 +25,19 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import reborncore.common.network.NetworkManager;
|
||||
import techreborn.packets.ServerboundPackets;
|
||||
import techreborn.blockentity.machine.tier1.RollingMachineBlockEntity;
|
||||
|
||||
public class GuiRollingMachine extends GuiBase<BuiltContainer> {
|
||||
public class GuiRollingMachine extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
RollingMachineBlockEntity rollingMachine;
|
||||
|
||||
public GuiRollingMachine(int syncID, final PlayerEntity player, final RollingMachineBlockEntity blockEntityRollingmachine) {
|
||||
super(player, blockEntityRollingmachine, blockEntityRollingmachine.createContainer(syncID, player));
|
||||
super(player, blockEntityRollingmachine, blockEntityRollingmachine.createScreenHandler(syncID, player));
|
||||
this.rollingMachine = blockEntityRollingmachine;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.machine.tier1.ScrapboxinatorBlockEntity;
|
||||
|
||||
public class GuiScrapboxinator extends GuiBase<BuiltContainer> {
|
||||
public class GuiScrapboxinator extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
ScrapboxinatorBlockEntity blockEntity;
|
||||
|
||||
public GuiScrapboxinator(int syncID, final PlayerEntity player, final ScrapboxinatorBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.generator.advanced.SemiFluidGeneratorBlockEntity;
|
||||
|
||||
public class GuiSemifluidGenerator extends GuiBase<BuiltContainer> {
|
||||
public class GuiSemifluidGenerator extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
SemiFluidGeneratorBlockEntity blockEntity;
|
||||
|
||||
public GuiSemifluidGenerator(int syncID, final PlayerEntity player, final SemiFluidGeneratorBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.common.util.StringUtils;
|
||||
import techreborn.blockentity.generator.SolarPanelBlockEntity;
|
||||
|
||||
public class GuiSolar extends GuiBase<BuiltContainer> {
|
||||
public class GuiSolar extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
SolarPanelBlockEntity blockEntity;
|
||||
|
||||
public GuiSolar(int syncID, PlayerEntity player, SolarPanelBlockEntity panel) {
|
||||
super(player, panel, panel.createContainer(syncID, player));
|
||||
super(player, panel, panel.createScreenHandler(syncID, player));
|
||||
this.blockEntity = panel;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.machine.tier1.SoildCanningMachineBlockEntity;
|
||||
|
||||
public class GuiSolidCanningMachine extends GuiBase<BuiltContainer> {
|
||||
public class GuiSolidCanningMachine extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
SoildCanningMachineBlockEntity blockEntity;
|
||||
|
||||
public GuiSolidCanningMachine(int syncID, final PlayerEntity player, final SoildCanningMachineBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
|
||||
}
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.common.util.StringUtils;
|
||||
import techreborn.blockentity.storage.item.StorageUnitBaseBlockEntity;
|
||||
|
||||
public class GuiStorageUnit extends GuiBase<BuiltContainer> {
|
||||
public class GuiStorageUnit extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
StorageUnitBaseBlockEntity storageEntity;
|
||||
|
||||
public GuiStorageUnit(int syncID, final PlayerEntity player, final StorageUnitBaseBlockEntity storageEntity) {
|
||||
super(player, storageEntity, storageEntity.createContainer(syncID, player));
|
||||
super(player, storageEntity, storageEntity.createScreenHandler(syncID, player));
|
||||
this.storageEntity = storageEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,19 +25,19 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.common.fluid.FluidUtil;
|
||||
import reborncore.common.fluid.container.FluidInstance;
|
||||
import reborncore.common.util.StringUtils;
|
||||
import techreborn.blockentity.storage.fluid.TankUnitBaseBlockEntity;
|
||||
|
||||
public class GuiTankUnit extends GuiBase<BuiltContainer> {
|
||||
public class GuiTankUnit extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
TankUnitBaseBlockEntity tankEntity;
|
||||
|
||||
public GuiTankUnit(int syncID, final PlayerEntity player, final TankUnitBaseBlockEntity tankEntity) {
|
||||
super(player, tankEntity, tankEntity.createContainer(syncID, player));
|
||||
super(player, tankEntity, tankEntity.createScreenHandler(syncID, player));
|
||||
this.tankEntity = tankEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.generator.advanced.ThermalGeneratorBlockEntity;
|
||||
|
||||
public class GuiThermalGenerator extends GuiBase<BuiltContainer> {
|
||||
public class GuiThermalGenerator extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
ThermalGeneratorBlockEntity blockEntity;
|
||||
|
||||
public GuiThermalGenerator(int syncID, final PlayerEntity player, final ThermalGeneratorBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ package techreborn.client.gui;
|
|||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.builder.widget.GuiButtonExtended;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
|
@ -35,12 +35,12 @@ import reborncore.client.multiblock.Multiblock;
|
|||
import techreborn.blockentity.machine.multiblock.VacuumFreezerBlockEntity;
|
||||
import techreborn.init.TRContent;
|
||||
|
||||
public class GuiVacuumFreezer extends GuiBase<BuiltContainer> {
|
||||
public class GuiVacuumFreezer extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
VacuumFreezerBlockEntity blockEntity;
|
||||
|
||||
public GuiVacuumFreezer(int syncID, final PlayerEntity player, final VacuumFreezerBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,17 +25,17 @@
|
|||
package techreborn.client.gui;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.screen.builder.BuiltScreenHandler;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
import reborncore.client.gui.guibuilder.GuiBuilder;
|
||||
import techreborn.blockentity.machine.tier1.WireMillBlockEntity;
|
||||
|
||||
public class GuiWireMill extends GuiBase<BuiltContainer> {
|
||||
public class GuiWireMill extends GuiBase<BuiltScreenHandler> {
|
||||
|
||||
WireMillBlockEntity blockEntity;
|
||||
|
||||
public GuiWireMill(int syncID, final PlayerEntity player, final WireMillBlockEntity blockEntity) {
|
||||
super(player, blockEntity, blockEntity.createContainer(syncID, player));
|
||||
super(player, blockEntity, blockEntity.createScreenHandler(syncID, player));
|
||||
this.blockEntity = blockEntity;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue