More moves and compilation fixes

This commit is contained in:
Sebastian Hartte
2020-06-29 02:15:31 +02:00
parent 3df93fc66d
commit 0d63f560d3
240 changed files with 2221 additions and 1926 deletions
@@ -298,7 +298,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
private void updateCraftingList() {
final Boolean[] accountedFor = { false, false, false, false, false, false, false, false, false }; // 9...
assert (accountedFor.length == this.patterns.getSlots());
assert (accountedFor.length == this.patterns.getSlotCount());
if (!this.gridProxy.isReady()) {
return;
@@ -353,7 +353,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
private void updatePlan(final int slot) {
IAEItemStack req = this.config.getAEStackInSlot(slot);
if (req != null && req.getStackSize() <= 0) {
this.config.setStackInSlot(slot, ItemStack.EMPTY);
this.config.setInvStack(slot, ItemStack.EMPTY);
req = null;
}
@@ -1,44 +0,0 @@
/*
* This file is part of Applied Energistics 2.
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
*
* Applied Energistics 2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Applied Energistics 2 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Applied Energistics 2. If not, see <http://www.gnu.org/licenses/lgpl>.
*/
package appeng.helpers;
import net.minecraft.inventory.container.ContainerType;
import net.minecraft.item.ItemStack;
public interface IPriorityHost {
/**
* get current priority.
*/
int getPriority();
/**
* set new priority
*/
void setPriority(int newValue);
ItemStack getItemStackRepresentation();
/**
* Used to show the user interface of this part when returning from the priority
* GUI.
*/
ContainerType<?> getContainerType();
}