More moves and compilation fixes
This commit is contained in:
@@ -23,8 +23,8 @@ import java.util.Iterator;
|
||||
import alexiil.mc.lib.attributes.item.FixedItemInv;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.inventory.container.IContainerListener;
|
||||
import net.minecraft.inventory.container.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -56,7 +56,7 @@ import appeng.util.iterators.NullIterator;
|
||||
|
||||
public class CellWorkbenchContainer extends UpgradeableContainer {
|
||||
|
||||
public static ContainerType<CellWorkbenchContainer> TYPE;
|
||||
public static ScreenHandlerType<CellWorkbenchContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<CellWorkbenchContainer, CellWorkbenchBlockEntity> helper = new ContainerHelper<>(
|
||||
CellWorkbenchContainer::new, CellWorkbenchBlockEntity.class);
|
||||
|
||||
@@ -20,7 +20,7 @@ package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
|
||||
import appeng.api.config.SecurityPermissions;
|
||||
@@ -31,7 +31,7 @@ import appeng.tile.storage.ChestBlockEntity;
|
||||
|
||||
public class ChestContainer extends AEBaseContainer {
|
||||
|
||||
public static ContainerType<ChestContainer> TYPE;
|
||||
public static ScreenHandlerType<ChestContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<ChestContainer, ChestBlockEntity> helper = new ContainerHelper<>(
|
||||
ChestContainer::new, ChestBlockEntity.class, SecurityPermissions.BUILD);
|
||||
|
||||
@@ -20,7 +20,7 @@ package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
import alexiil.mc.lib.attributes.item.FixedItemInv;
|
||||
|
||||
@@ -37,7 +37,7 @@ import appeng.util.Platform;
|
||||
|
||||
public class CondenserContainer extends AEBaseContainer implements IProgressProvider {
|
||||
|
||||
public static ContainerType<CondenserContainer> TYPE;
|
||||
public static ScreenHandlerType<CondenserContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<CondenserContainer, CondenserBlockEntity> helper = new ContainerHelper<>(
|
||||
CondenserContainer::new, CondenserBlockEntity.class);
|
||||
|
||||
@@ -22,7 +22,7 @@ import javax.annotation.Nonnull;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.inventory.container.Slot;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
import net.minecraft.world.World;
|
||||
@@ -41,7 +41,7 @@ import appeng.tile.inventory.AppEngInternalInventory;
|
||||
|
||||
public class CraftAmountContainer extends AEBaseContainer {
|
||||
|
||||
public static ContainerType<CraftAmountContainer> TYPE;
|
||||
public static ScreenHandlerType<CraftAmountContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<CraftAmountContainer, ITerminalHost> helper = new ContainerHelper<>(
|
||||
CraftAmountContainer::new, ITerminalHost.class, SecurityPermissions.CRAFT);
|
||||
|
||||
@@ -29,8 +29,8 @@ import com.google.common.collect.ImmutableSet;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.inventory.container.IContainerListener;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
import net.minecraft.text.Text;
|
||||
@@ -69,7 +69,7 @@ import appeng.util.Platform;
|
||||
|
||||
public class CraftConfirmContainer extends AEBaseContainer {
|
||||
|
||||
public static ContainerType<CraftConfirmContainer> TYPE;
|
||||
public static ScreenHandlerType<CraftConfirmContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<CraftConfirmContainer, ITerminalHost> helper = new ContainerHelper<>(
|
||||
CraftConfirmContainer::new, ITerminalHost.class, SecurityPermissions.CRAFT);
|
||||
@@ -293,7 +293,7 @@ public class CraftConfirmContainer extends AEBaseContainer {
|
||||
}
|
||||
|
||||
public void startJob() {
|
||||
ContainerType<?> originalGui = null;
|
||||
ScreenHandlerType<?> originalGui = null;
|
||||
|
||||
final IActionHost ah = this.getActionHost();
|
||||
if (ah instanceof WirelessTerminalGuiObject) {
|
||||
|
||||
@@ -22,8 +22,8 @@ import java.io.IOException;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.inventory.container.IContainerListener;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
import net.minecraft.text.Text;
|
||||
@@ -55,7 +55,7 @@ import appeng.util.Platform;
|
||||
public class CraftingCPUContainer extends AEBaseContainer
|
||||
implements IMEMonitorHandlerReceiver<IAEItemStack>, ICustomNameObject {
|
||||
|
||||
public static ContainerType<CraftingCPUContainer> TYPE;
|
||||
public static ScreenHandlerType<CraftingCPUContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<CraftingCPUContainer, CraftingBlockEntity> helper = new ContainerHelper<>(
|
||||
CraftingCPUContainer::new, CraftingBlockEntity.class, SecurityPermissions.CRAFT);
|
||||
@@ -73,7 +73,7 @@ public class CraftingCPUContainer extends AEBaseContainer
|
||||
this(TYPE, id, ip, te);
|
||||
}
|
||||
|
||||
public CraftingCPUContainer(ContainerType<?> containerType, int id, final PlayerInventory ip, final Object te) {
|
||||
public CraftingCPUContainer(ScreenHandlerType<?> containerType, int id, final PlayerInventory ip, final Object te) {
|
||||
super(containerType, id, ip, te);
|
||||
final IActionHost host = (IActionHost) (te instanceof IActionHost ? te : null);
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ import com.google.common.collect.ImmutableSet;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
import net.minecraft.text.Text;
|
||||
|
||||
@@ -40,7 +40,7 @@ import appeng.util.Platform;
|
||||
|
||||
public class CraftingStatusContainer extends CraftingCPUContainer {
|
||||
|
||||
public static ContainerType<CraftingStatusContainer> TYPE;
|
||||
public static ScreenHandlerType<CraftingStatusContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<CraftingStatusContainer, ITerminalHost> helper = new ContainerHelper<>(
|
||||
CraftingStatusContainer::new, ITerminalHost.class, SecurityPermissions.CRAFT);
|
||||
|
||||
@@ -23,7 +23,7 @@ import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.CraftingInventory;
|
||||
import net.minecraft.inventory.Inventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.recipe.Recipe;
|
||||
import net.minecraft.recipe.RecipeType;
|
||||
@@ -47,7 +47,7 @@ import appeng.util.inv.WrapperInvItemHandler;
|
||||
public class CraftingTermContainer extends MEMonitorableContainer
|
||||
implements IAEAppEngInventory, IContainerCraftingPacket {
|
||||
|
||||
public static ContainerType<CraftingTermContainer> TYPE;
|
||||
public static ScreenHandlerType<CraftingTermContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<CraftingTermContainer, ITerminalHost> helper = new ContainerHelper<>(
|
||||
CraftingTermContainer::new, ITerminalHost.class, SecurityPermissions.CRAFT);
|
||||
|
||||
@@ -20,7 +20,7 @@ package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
|
||||
import appeng.container.AEBaseContainer;
|
||||
@@ -30,7 +30,7 @@ import appeng.tile.storage.DriveBlockEntity;
|
||||
|
||||
public class DriveContainer extends AEBaseContainer {
|
||||
|
||||
public static ContainerType<DriveContainer> TYPE;
|
||||
public static ScreenHandlerType<DriveContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<DriveContainer, DriveBlockEntity> helper = new ContainerHelper<>(
|
||||
DriveContainer::new, DriveBlockEntity.class);
|
||||
|
||||
@@ -21,7 +21,7 @@ package appeng.container.implementations;
|
||||
import alexiil.mc.lib.attributes.item.FixedItemInv;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
|
||||
import appeng.api.config.FuzzyMode;
|
||||
@@ -39,7 +39,7 @@ import appeng.util.Platform;
|
||||
|
||||
public class FormationPlaneContainer extends UpgradeableContainer {
|
||||
|
||||
public static ContainerType<FormationPlaneContainer> TYPE;
|
||||
public static ScreenHandlerType<FormationPlaneContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<FormationPlaneContainer, FormationPlanePart> helper = new ContainerHelper<>(
|
||||
FormationPlaneContainer::new, FormationPlanePart.class, SecurityPermissions.BUILD);
|
||||
|
||||
@@ -20,7 +20,7 @@ package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
import alexiil.mc.lib.attributes.item.FixedItemInv;
|
||||
|
||||
@@ -33,7 +33,7 @@ import appeng.tile.grindstone.GrinderBlockEntity;
|
||||
|
||||
public class GrinderContainer extends AEBaseContainer {
|
||||
|
||||
public static ContainerType<GrinderContainer> TYPE;
|
||||
public static ScreenHandlerType<GrinderContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<GrinderContainer, GrinderBlockEntity> helper = new ContainerHelper<>(
|
||||
GrinderContainer::new, GrinderBlockEntity.class);
|
||||
|
||||
@@ -21,7 +21,7 @@ package appeng.container.implementations;
|
||||
import alexiil.mc.lib.attributes.item.FixedItemInv;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
|
||||
import appeng.api.config.FullnessMode;
|
||||
@@ -38,7 +38,7 @@ import appeng.util.Platform;
|
||||
|
||||
public class IOPortContainer extends UpgradeableContainer {
|
||||
|
||||
public static ContainerType<IOPortContainer> TYPE;
|
||||
public static ScreenHandlerType<IOPortContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<IOPortContainer, IOPortBlockEntity> helper = new ContainerHelper<>(
|
||||
IOPortContainer::new, IOPortBlockEntity.class, SecurityPermissions.BUILD);
|
||||
|
||||
@@ -20,7 +20,7 @@ package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.inventory.container.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
@@ -45,7 +45,7 @@ import appeng.util.Platform;
|
||||
*/
|
||||
public class InscriberContainer extends UpgradeableContainer implements IProgressProvider {
|
||||
|
||||
public static ContainerType<InscriberContainer> TYPE;
|
||||
public static ScreenHandlerType<InscriberContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<InscriberContainer, InscriberBlockEntity> helper = new ContainerHelper<>(
|
||||
InscriberContainer::new, InscriberBlockEntity.class);
|
||||
|
||||
@@ -20,7 +20,7 @@ package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
|
||||
import appeng.api.config.SecurityPermissions;
|
||||
@@ -37,7 +37,7 @@ import appeng.helpers.IInterfaceHost;
|
||||
|
||||
public class InterfaceContainer extends UpgradeableContainer {
|
||||
|
||||
public static ContainerType<InterfaceContainer> TYPE;
|
||||
public static ScreenHandlerType<InterfaceContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<InterfaceContainer, IInterfaceHost> helper = new ContainerHelper<>(
|
||||
InterfaceContainer::new, IInterfaceHost.class, SecurityPermissions.BUILD);
|
||||
|
||||
@@ -25,8 +25,8 @@ import java.util.Map.Entry;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
@@ -61,7 +61,7 @@ import appeng.util.inv.filter.IAEItemFilter;
|
||||
|
||||
public final class InterfaceTerminalContainer extends AEBaseContainer {
|
||||
|
||||
public static ContainerType<InterfaceTerminalContainer> TYPE;
|
||||
public static ScreenHandlerType<InterfaceTerminalContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<InterfaceTerminalContainer, InterfaceTerminalPart> helper = new ContainerHelper<>(
|
||||
InterfaceTerminalContainer::new, InterfaceTerminalPart.class, SecurityPermissions.BUILD);
|
||||
|
||||
@@ -24,7 +24,7 @@ import net.fabricmc.api.Environment;
|
||||
import net.minecraft.client.gui.widget.TextFieldWidget;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
|
||||
import appeng.api.config.FuzzyMode;
|
||||
@@ -42,7 +42,7 @@ import appeng.util.Platform;
|
||||
|
||||
public class LevelEmitterContainer extends UpgradeableContainer {
|
||||
|
||||
public static ContainerType<LevelEmitterContainer> TYPE;
|
||||
public static ScreenHandlerType<LevelEmitterContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<LevelEmitterContainer, LevelEmitterPart> helper = new ContainerHelper<>(
|
||||
LevelEmitterContainer::new, LevelEmitterPart.class, SecurityPermissions.BUILD);
|
||||
|
||||
@@ -25,8 +25,8 @@ import javax.annotation.Nonnull;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.inventory.container.IContainerListener;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
@@ -78,7 +78,7 @@ import appeng.util.Platform;
|
||||
public class MEMonitorableContainer extends AEBaseContainer
|
||||
implements IConfigManagerHost, IConfigurableObject, IMEMonitorHandlerReceiver<IAEItemStack> {
|
||||
|
||||
public static ContainerType<MEMonitorableContainer> TYPE;
|
||||
public static ScreenHandlerType<MEMonitorableContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<MEMonitorableContainer, ITerminalHost> helper = new ContainerHelper<>(
|
||||
MEMonitorableContainer::new, ITerminalHost.class);
|
||||
@@ -109,8 +109,8 @@ public class MEMonitorableContainer extends AEBaseContainer
|
||||
this(TYPE, id, ip, monitorable, true);
|
||||
}
|
||||
|
||||
public MEMonitorableContainer(ContainerType<?> containerType, int id, PlayerInventory ip,
|
||||
final ITerminalHost monitorable, final boolean bindInventory) {
|
||||
public MEMonitorableContainer(ScreenHandlerType<?> containerType, int id, PlayerInventory ip,
|
||||
final ITerminalHost monitorable, final boolean bindInventory) {
|
||||
super(containerType, id, ip, monitorable instanceof BlockEntity ? (BlockEntity) monitorable : null,
|
||||
monitorable instanceof IPart ? (IPart) monitorable : null,
|
||||
monitorable instanceof IGuiItemObject ? (IGuiItemObject) monitorable : null);
|
||||
|
||||
@@ -20,7 +20,7 @@ package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
|
||||
@@ -32,7 +32,7 @@ import appeng.container.interfaces.IInventorySlotAware;
|
||||
|
||||
public class MEPortableCellContainer extends MEMonitorableContainer {
|
||||
|
||||
public static ContainerType<MEPortableCellContainer> TYPE;
|
||||
public static ScreenHandlerType<MEPortableCellContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<MEPortableCellContainer, IPortableCell> helper = new ContainerHelper<>(
|
||||
MEPortableCellContainer::new, IPortableCell.class);
|
||||
@@ -55,8 +55,8 @@ public class MEPortableCellContainer extends MEMonitorableContainer {
|
||||
this(TYPE, id, ip, monitorable);
|
||||
}
|
||||
|
||||
protected MEPortableCellContainer(ContainerType<? extends MEPortableCellContainer> type, int id,
|
||||
final PlayerInventory ip, final IPortableCell monitorable) {
|
||||
protected MEPortableCellContainer(ScreenHandlerType<? extends MEPortableCellContainer> type, int id,
|
||||
final PlayerInventory ip, final IPortableCell monitorable) {
|
||||
super(type, id, ip, monitorable, false);
|
||||
if (monitorable instanceof IInventorySlotAware) {
|
||||
final int slotIndex = ((IInventorySlotAware) monitorable).getInventorySlot();
|
||||
|
||||
@@ -21,7 +21,7 @@ package appeng.container.implementations;
|
||||
import alexiil.mc.lib.attributes.item.FixedItemInv;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.inventory.container.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
@@ -44,7 +44,7 @@ import appeng.util.Platform;
|
||||
|
||||
public class MolecularAssemblerContainer extends UpgradeableContainer implements IProgressProvider {
|
||||
|
||||
public static ContainerType<MolecularAssemblerContainer> TYPE;
|
||||
public static ScreenHandlerType<MolecularAssemblerContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<MolecularAssemblerContainer, MolecularAssemblerBlockEntity> helper = new ContainerHelper<>(
|
||||
MolecularAssemblerContainer::new, MolecularAssemblerBlockEntity.class);
|
||||
|
||||
@@ -22,8 +22,8 @@ import java.io.IOException;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
|
||||
@@ -48,7 +48,7 @@ import appeng.util.item.AEItemStack;
|
||||
|
||||
public class NetworkStatusContainer extends AEBaseContainer {
|
||||
|
||||
public static ContainerType<NetworkStatusContainer> TYPE;
|
||||
public static ScreenHandlerType<NetworkStatusContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<NetworkStatusContainer, INetworkTool> helper = new ContainerHelper<>(
|
||||
NetworkStatusContainer::new, INetworkTool.class);
|
||||
|
||||
@@ -20,7 +20,7 @@ package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
@@ -33,7 +33,7 @@ import appeng.container.slot.RestrictedInputSlot;
|
||||
|
||||
public class NetworkToolContainer extends AEBaseContainer {
|
||||
|
||||
public static ContainerType<NetworkToolContainer> TYPE;
|
||||
public static ScreenHandlerType<NetworkToolContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<NetworkToolContainer, INetworkTool> helper = new ContainerHelper<>(
|
||||
NetworkToolContainer::new, INetworkTool.class);
|
||||
|
||||
@@ -30,7 +30,7 @@ import net.minecraft.recipe.RecipeType;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.inventory.CraftResultInventory;
|
||||
import net.minecraft.inventory.CraftingInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.inventory.container.CraftingResultSlot;
|
||||
import net.minecraft.inventory.container.IContainerListener;
|
||||
import net.minecraft.inventory.container.Slot;
|
||||
@@ -77,7 +77,7 @@ import appeng.util.item.AEItemStack;
|
||||
public class PatternTermContainer extends MEMonitorableContainer
|
||||
implements IAEAppEngInventory, IOptionalSlotHost, IContainerCraftingPacket {
|
||||
|
||||
public static ContainerType<PatternTermContainer> TYPE;
|
||||
public static ScreenHandlerType<PatternTermContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<PatternTermContainer, ITerminalHost> helper = new ContainerHelper<>(
|
||||
PatternTermContainer::new, ITerminalHost.class, SecurityPermissions.CRAFT);
|
||||
@@ -184,7 +184,7 @@ public class PatternTermContainer extends MEMonitorableContainer
|
||||
is = this.currentRecipe.craft(ic);
|
||||
}
|
||||
|
||||
this.cOut.setStackInSlot(0, is);
|
||||
this.cOut.setInvStack(0, is);
|
||||
return is;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import net.minecraft.block.entity.BlockEntity;
|
||||
import net.minecraft.client.gui.widget.TextFieldWidget;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
@@ -37,7 +37,7 @@ import appeng.util.Platform;
|
||||
|
||||
public class PriorityContainer extends AEBaseContainer {
|
||||
|
||||
public static ContainerType<PriorityContainer> TYPE;
|
||||
public static ScreenHandlerType<PriorityContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<PriorityContainer, IPriorityHost> helper = new ContainerHelper<>(
|
||||
PriorityContainer::new, IPriorityHost.class, SecurityPermissions.BUILD);
|
||||
|
||||
@@ -20,7 +20,7 @@ package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
|
||||
import appeng.api.config.SecurityPermissions;
|
||||
@@ -31,7 +31,7 @@ import appeng.tile.qnb.QuantumBridgeBlockEntity;
|
||||
|
||||
public class QNBContainer extends AEBaseContainer {
|
||||
|
||||
public static ContainerType<QNBContainer> TYPE;
|
||||
public static ScreenHandlerType<QNBContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<QNBContainer, QuantumBridgeBlockEntity> helper = new ContainerHelper<>(
|
||||
QNBContainer::new, QuantumBridgeBlockEntity.class, SecurityPermissions.BUILD);
|
||||
|
||||
@@ -23,7 +23,7 @@ import javax.annotation.Nonnull;
|
||||
import alexiil.mc.lib.attributes.item.FixedItemInv;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
@@ -42,7 +42,7 @@ import appeng.util.Platform;
|
||||
|
||||
public class QuartzKnifeContainer extends AEBaseContainer {
|
||||
|
||||
public static ContainerType<QuartzKnifeContainer> TYPE;
|
||||
public static ScreenHandlerType<QuartzKnifeContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<QuartzKnifeContainer, QuartzKnifeObj> helper = new ContainerHelper<>(
|
||||
QuartzKnifeContainer::new, QuartzKnifeObj.class);
|
||||
|
||||
@@ -20,7 +20,7 @@ package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.inventory.container.IContainerListener;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
@@ -43,7 +43,7 @@ import appeng.util.inv.InvOperation;
|
||||
|
||||
public class SecurityStationContainer extends MEMonitorableContainer implements IAEAppEngInventory {
|
||||
|
||||
public static ContainerType<SecurityStationContainer> TYPE;
|
||||
public static ScreenHandlerType<SecurityStationContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<SecurityStationContainer, ITerminalHost> helper = new ContainerHelper<>(
|
||||
SecurityStationContainer::new, ITerminalHost.class, SecurityPermissions.SECURITY);
|
||||
|
||||
@@ -20,7 +20,7 @@ package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
|
||||
import appeng.container.AEBaseContainer;
|
||||
@@ -30,7 +30,7 @@ import appeng.tile.storage.SkyChestBlockEntity;
|
||||
|
||||
public class SkyChestContainer extends AEBaseContainer {
|
||||
|
||||
public static ContainerType<SkyChestContainer> TYPE;
|
||||
public static ScreenHandlerType<SkyChestContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<SkyChestContainer, SkyChestBlockEntity> helper = new ContainerHelper<>(
|
||||
SkyChestContainer::new, SkyChestBlockEntity.class);
|
||||
|
||||
@@ -20,7 +20,7 @@ package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
|
||||
import appeng.api.config.SecurityPermissions;
|
||||
@@ -39,7 +39,7 @@ import appeng.util.Platform;
|
||||
|
||||
public class SpatialIOPortContainer extends AEBaseContainer {
|
||||
|
||||
public static ContainerType<SpatialIOPortContainer> TYPE;
|
||||
public static ScreenHandlerType<SpatialIOPortContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<SpatialIOPortContainer, SpatialIOPortBlockEntity> helper = new ContainerHelper<>(
|
||||
SpatialIOPortContainer::new, SpatialIOPortBlockEntity.class, SecurityPermissions.BUILD);
|
||||
|
||||
@@ -23,7 +23,7 @@ import java.util.Iterator;
|
||||
import alexiil.mc.lib.attributes.item.FixedItemInv;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
|
||||
@@ -50,7 +50,7 @@ import appeng.util.iterators.NullIterator;
|
||||
|
||||
public class StorageBusContainer extends UpgradeableContainer {
|
||||
|
||||
public static ContainerType<StorageBusContainer> TYPE;
|
||||
public static ScreenHandlerType<StorageBusContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<StorageBusContainer, StorageBusPart> helper = new ContainerHelper<>(
|
||||
StorageBusContainer::new, StorageBusPart.class, SecurityPermissions.BUILD);
|
||||
|
||||
@@ -22,7 +22,7 @@ import net.minecraft.block.entity.BlockEntity;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.Inventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
@@ -55,7 +55,7 @@ import appeng.util.Platform;
|
||||
|
||||
public class UpgradeableContainer extends AEBaseContainer implements IOptionalSlotHost {
|
||||
|
||||
public static ContainerType<UpgradeableContainer> TYPE;
|
||||
public static ScreenHandlerType<UpgradeableContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<UpgradeableContainer, IUpgradeableHost> helper = new ContainerHelper<>(
|
||||
UpgradeableContainer::new, IUpgradeableHost.class, SecurityPermissions.BUILD);
|
||||
@@ -84,8 +84,8 @@ public class UpgradeableContainer extends AEBaseContainer implements IOptionalSl
|
||||
this(TYPE, id, ip, te);
|
||||
}
|
||||
|
||||
public UpgradeableContainer(ContainerType<?> containerType, int id, final PlayerInventory ip,
|
||||
final IUpgradeableHost te) {
|
||||
public UpgradeableContainer(ScreenHandlerType<?> containerType, int id, final PlayerInventory ip,
|
||||
final IUpgradeableHost te) {
|
||||
super(containerType, id, ip, (BlockEntity) (te instanceof BlockEntity ? te : null),
|
||||
(IPart) (te instanceof IPart ? te : null));
|
||||
this.upgradeable = te;
|
||||
|
||||
@@ -20,7 +20,7 @@ package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
|
||||
import appeng.container.AEBaseContainer;
|
||||
@@ -33,7 +33,7 @@ import appeng.util.Platform;
|
||||
|
||||
public class VibrationChamberContainer extends AEBaseContainer implements IProgressProvider {
|
||||
|
||||
public static ContainerType<VibrationChamberContainer> TYPE;
|
||||
public static ScreenHandlerType<VibrationChamberContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<VibrationChamberContainer, VibrationChamberBlockEntity> helper = new ContainerHelper<>(
|
||||
VibrationChamberContainer::new, VibrationChamberBlockEntity.class);
|
||||
|
||||
@@ -20,7 +20,7 @@ package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
|
||||
import appeng.api.config.SecurityPermissions;
|
||||
@@ -33,7 +33,7 @@ import appeng.tile.networking.WirelessBlockEntity;
|
||||
|
||||
public class WirelessContainer extends AEBaseContainer {
|
||||
|
||||
public static ContainerType<WirelessContainer> TYPE;
|
||||
public static ScreenHandlerType<WirelessContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<WirelessContainer, WirelessBlockEntity> helper = new ContainerHelper<>(
|
||||
WirelessContainer::new, WirelessBlockEntity.class, SecurityPermissions.BUILD);
|
||||
|
||||
@@ -20,7 +20,7 @@ package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.entity.player.PlayerInventory;
|
||||
import net.minecraft.inventory.container.ContainerType;
|
||||
import net.minecraft.screen.ScreenHandlerType;
|
||||
import net.minecraft.network.PacketByteBuf;
|
||||
|
||||
import appeng.container.ContainerLocator;
|
||||
@@ -31,7 +31,7 @@ import appeng.util.Platform;
|
||||
|
||||
public class WirelessTermContainer extends MEPortableCellContainer {
|
||||
|
||||
public static ContainerType<WirelessTermContainer> TYPE;
|
||||
public static ScreenHandlerType<WirelessTermContainer> TYPE;
|
||||
|
||||
private static final ContainerHelper<WirelessTermContainer, WirelessTerminalGuiObject> helper = new ContainerHelper<>(
|
||||
WirelessTermContainer::new, WirelessTerminalGuiObject.class);
|
||||
|
||||
Reference in New Issue
Block a user