Compare commits

...
Author SHA1 Message Date
DreamYao520 5f9c1b236e Fix universal terminal mode sync in baubles (#451) 2026-07-18 16:43:32 +00:00
przemo1232andMartin Robertz 3f5903aad4 fix cell view text formatting (#449)
Co-authored-by: Martin Robertz <[email protected]>
2026-07-14 13:20:22 +00:00
HamCorp (Tooj) 10cd1d50ab Fixed grammar on fluid packet tooltip (#450) 2026-07-13 09:31:30 -04:00
lc-1337 7014b7eaca use IStorageCell (#448) 2026-06-23 01:07:36 -04:00
e50d549085 Super stock replenisher full stock mode (#442)
Co-authored-by: PLASMAchicken <[email protected]>
Co-authored-by: lc-1337 <[email protected]>
Co-authored-by: Martin Robertz <[email protected]>
2026-06-22 22:31:47 +02:00
Redderpears f381726ef2 Included stationary lava and water to annihilation plane (#447) 2026-06-21 13:01:09 +02:00
10 changed files with 282 additions and 46 deletions

No files matched your search

@@ -230,6 +230,7 @@ public class UltraTerminalButtons implements ICustomButtonDataObject {
this.reStock = buf.readBoolean();
this.magnetMode = WirelessMagnet.Mode.values()[buf.readInt()];
this.terminalMode = UltraTerminalModes.values()[buf.readInt()];
ItemWirelessUltraTerminal.setMode(this.terminal, this.terminalMode);
toggleMagnetButtonsVisibility();
toggleRestockVisibility();
@@ -67,6 +67,8 @@ public class GuiFCImgButton extends GuiButton implements ITooltip {
this.registerApp(22, "SWITCH", "DISABLE", "disable");
this.registerApp(23, "OPEN_GUI", "YES", "open_gui");
this.registerApp(24, "HIGHLIGHT", "YES", "block_highlight");
this.registerApp(26, "stock mode button", "normalMode", "Normal.mode");
this.registerApp(27, "stock mode button", "fullstockMode", "Full-stock.mode");
this.registerApp(30, "MAGNET_CARD", "INV", "magnet_card.inv");
this.registerApp(30, "MAGNET_CARD", "ME", "magnet_card.me");
this.registerApp(30, "MAGNET_CARD", "FILTER", "magnet_card.filter");
@@ -4,6 +4,7 @@ import java.text.DecimalFormat;
import java.util.HashMap;
import java.util.Map;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.util.ResourceLocation;
@@ -29,14 +30,18 @@ public class GuiSuperStockReplenisher extends AEBaseGui {
private final DecimalFormat df = new DecimalFormat("#.#");
private Map<Integer, IAEStack<?>> list = new HashMap<>();
private final ContainerSuperStockReplenisher containerSuperStockReplenisher;
private final TileSuperStockReplenisher tileSuperStockReplenisher;
private final VirtualMEPhantomSlotPrecise[] configFluidsSlots = new VirtualMEPhantomSlotPrecise[9];
private final VirtualMEPhantomSlotPrecise[] configItemsSlots = new VirtualMEPhantomSlotPrecise[63];
private GuiFCImgButton StockModeButton;
public GuiSuperStockReplenisher(InventoryPlayer ipl, TileSuperStockReplenisher tile) {
super(new ContainerSuperStockReplenisher(ipl, tile));
this.containerSuperStockReplenisher = (ContainerSuperStockReplenisher) inventorySlots;
this.tileSuperStockReplenisher = tile;
this.ySize = 251;
this.xSize = 216;
@@ -45,6 +50,15 @@ public class GuiSuperStockReplenisher extends AEBaseGui {
@Override
public void initGui() {
super.initGui();
this.StockModeButton = new GuiFCImgButton(
guiLeft - 18,
guiTop + 8,
"stock mode button",
this.containerSuperStockReplenisher.isFullStockMode() ? "fullstockMode" : "normalMode",
true);
this.containerSuperStockReplenisher.setModeButton(this.StockModeButton);
buttonList.add(this.StockModeButton);
this.initSlots();
}
@@ -125,6 +139,19 @@ public class GuiSuperStockReplenisher extends AEBaseGui {
this.drawTexturedModalRect(offsetX, offsetY, 0, 0, xSize, ySize);
}
@Override
protected void actionPerformed(final GuiButton btn) {
if (actionPerformedCustomButtons(btn)) return;
if (btn == StockModeButton) {
boolean newMode = !containerSuperStockReplenisher.isFullStockMode();
this.containerSuperStockReplenisher.setFullStockMode(newMode);
StockModeButton.set(newMode ? "fullstockMode" : "normalMode");
this.flushPendingSync();
}
super.actionPerformed(btn);
}
public void update(Map<Integer, IAEStack<?>> map) {
this.list = map;
}
@@ -11,13 +11,14 @@ import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import com.glodblock.github.FluidCraft;
import com.glodblock.github.common.item.FCBaseItemCell;
import com.glodblock.github.client.gui.GuiFCImgButton;
import com.glodblock.github.common.tile.TileSuperStockReplenisher;
import com.glodblock.github.inventory.gui.GuiType;
import com.glodblock.github.loader.ItemAndBlockHolder;
import com.glodblock.github.network.SPacketSuperStockReplenisherUpdate;
import com.glodblock.github.util.FluidPrimaryGui;
import appeng.api.implementations.items.IStorageCell;
import appeng.api.storage.StorageName;
import appeng.api.storage.data.IAEStack;
import appeng.container.AEBaseContainer;
@@ -27,10 +28,12 @@ import appeng.container.interfaces.IVirtualSlotSource;
import appeng.container.slot.SlotRestrictedInput;
import appeng.container.sync.SyncManager;
import appeng.container.sync.handlers.AEStackInventorySyncHandler;
import appeng.items.storage.ItemBasicStorageCell;
import appeng.container.sync.handlers.BooleanSyncHandler;
import appeng.tile.inventory.IAEStackInventory;
import appeng.util.Platform;
import appeng.util.item.AEItemStack;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class ContainerSuperStockReplenisher extends AEBaseContainer implements IVirtualSlotSource {
@@ -44,6 +47,11 @@ public class ContainerSuperStockReplenisher extends AEBaseContainer implements I
private final IAEStackInventory configItems;
public final AEStackInventorySyncHandler configItemsSlots;
public final BooleanSyncHandler fullStockModeSync;
@SideOnly(Side.CLIENT)
private GuiFCImgButton modeButton;
public ContainerSuperStockReplenisher(InventoryPlayer ipl, TileSuperStockReplenisher tile) {
super(ipl, tile);
this.tile = tile;
@@ -54,6 +62,11 @@ public class ContainerSuperStockReplenisher extends AEBaseContainer implements I
final SyncManager sm = this.getSyncManager();
this.configFluidsSlots = sm.root().aeStackInventory("fluidConfig", this.configFluids);
this.configItemsSlots = sm.root().aeStackInventory("itemConfig", this.configItems);
this.fullStockModeSync = sm.root().booleanSync("fullstockMode").onClientChange((oldValue, newValue) -> {
if (this.modeButton != null) {
this.modeButton.set(newValue ? "fullstockMode" : "normalMode");
}
}).onServerChange((oldValue, newValue) -> this.tile.setFullStockMode(newValue));
this.addSlotToContainer(
new SlotRestrictedInput(
@@ -67,6 +80,11 @@ public class ContainerSuperStockReplenisher extends AEBaseContainer implements I
bindPlayerInventory(ipl, 0, 251 - 82);
}
@SideOnly(Side.CLIENT)
public void setModeButton(GuiFCImgButton button) {
this.modeButton = button;
}
@Override
public ItemStack slotClick(int slotId, int clickedButton, int mode, EntityPlayer player) {
if (slotId == 0 && player.inventory.getItemStack() == null && isConfigurated()) return null;
@@ -95,6 +113,9 @@ public class ContainerSuperStockReplenisher extends AEBaseContainer implements I
FluidCraft.proxy.netHandler.sendTo(new SPacketSuperStockReplenisherUpdate(tmp), (EntityPlayerMP) g);
}
}
if (Platform.isServer()) this.setFullStockMode(this.tile.isFullStockMode());
}
this.lastUpdated++;
@@ -115,17 +136,9 @@ public class ContainerSuperStockReplenisher extends AEBaseContainer implements I
long currentBytes = 0;
long newBytes = -1;
if (s.getStack().getItem() instanceof ItemBasicStorageCell ibsc) {
currentBytes = ibsc.getBytesLong(is);
} else if (s.getStack().getItem() instanceof FCBaseItemCell fcbic) {
currentBytes = fcbic.getBytes(is);
}
if (s.getStack().getItem() instanceof IStorageCell isc) currentBytes = isc.getBytesLong(is);
if (is.getItem() instanceof ItemBasicStorageCell ibsc) {
newBytes = ibsc.getBytesLong(is);
} else if (is.getItem() instanceof FCBaseItemCell fcbic) {
newBytes = fcbic.getBytes(is);
}
if (is.getItem() instanceof IStorageCell isc) newBytes = isc.getBytesLong(is);
if (currentBytes > newBytes) {
return false;
@@ -158,4 +171,20 @@ public class ContainerSuperStockReplenisher extends AEBaseContainer implements I
}
}
}
public TileSuperStockReplenisher getTile() {
return this.tile;
}
public boolean isFullStockMode() {
return this.fullStockModeSync.get();
}
public void setFullStockMode(final boolean fullStockMode) {
this.fullStockModeSync.set(fullStockMode);
}
public void markDirty() {
this.fullStockModeSync.markDirty();
}
}
@@ -61,14 +61,14 @@ public class PartFluidAnnihilationPlane extends PartBaseAnnihilationPlane {
Platform.poweredInsert(power, monitor, toInject, src, Actionable.MODULATE);
block.drain(world, self.x + side.offsetX, self.y + side.offsetY, self.z + side.offsetZ, true);
} else if (meta == 0) {
if (fluidBlock == Blocks.flowing_water) {
if (fluidBlock == Blocks.flowing_water || fluidBlock == Blocks.water) {
final IAEFluidStack toInject = Util.FluidUtil.createAEFluidStack(FluidRegistry.WATER);
final IAEFluidStack notInjected = Platform
.poweredInsert(power, monitor, toInject, src, Actionable.SIMULATE);
if (notInjected != null) return;
Platform.poweredInsert(power, monitor, toInject, src, Actionable.MODULATE);
world.setBlockToAir(self.x + side.offsetX, self.y + side.offsetY, self.z + side.offsetZ);
} else if (fluidBlock == Blocks.flowing_lava) {
} else if (fluidBlock == Blocks.flowing_lava || fluidBlock == Blocks.lava) {
final IAEFluidStack toInject = Util.FluidUtil.createAEFluidStack(FluidRegistry.LAVA);
final IAEFluidStack notInjected = Platform
.poweredInsert(power, monitor, toInject, src, Actionable.SIMULATE);
@@ -17,7 +17,6 @@ import net.minecraftforge.fluids.IFluidHandler;
import org.jetbrains.annotations.Nullable;
import com.glodblock.github.common.item.FCBaseItemCell;
import com.glodblock.github.common.item.ItemFluidPacket;
import com.glodblock.github.inventory.AEFluidInventory;
import com.glodblock.github.inventory.IAEFluidInventory;
@@ -28,6 +27,7 @@ import appeng.api.AEApi;
import appeng.api.config.Actionable;
import appeng.api.config.PowerMultiplier;
import appeng.api.implementations.IPowerChannelState;
import appeng.api.implementations.items.IStorageCell;
import appeng.api.networking.GridFlags;
import appeng.api.networking.IGridNode;
import appeng.api.networking.events.MENetworkBootingStatusChange;
@@ -48,7 +48,6 @@ import appeng.api.util.AECableType;
import appeng.api.util.DimensionalCoord;
import appeng.api.util.IConfigManager;
import appeng.core.AELog;
import appeng.items.storage.ItemBasicStorageCell;
import appeng.me.GridAccessException;
import appeng.tile.TileEvent;
import appeng.tile.events.TileEventType;
@@ -69,6 +68,7 @@ public class TileSuperStockReplenisher extends AENetworkInvTile implements IAEFl
private final AppEngInternalInventory cell = new AppEngInternalInventory(this, 1);
private final BiggerAppEngInventory invItems = new BiggerAppEngInventory(this, 63);
private final AEFluidInventory invFluids = new AEFluidInventory(this, 9, Integer.MAX_VALUE);
private final IAEStackInventory configItems = new IAEStackInventory(this, 63, StorageName.CONFIG);
private final IAEStackInventory configFluids = new IAEStackInventory(this, 9, StorageName.NONE) {
@Override
@@ -85,32 +85,47 @@ public class TileSuperStockReplenisher extends AENetworkInvTile implements IAEFl
}
}
};
private final IAEStackInventory configItems = new IAEStackInventory(this, 63, StorageName.CONFIG);
private final BaseActionSource source;
private boolean isPowered;
private long totalBytes;
private long storedFluidCount;
private long storedItemCount;
protected boolean isFullStockMode;
protected boolean isSlotsAccessible;
protected boolean isNeedsFullyStocked;
protected boolean modeChange;
private boolean needReCountStoredFluids = true;
private boolean needReCountStoredItems = true;
public TileSuperStockReplenisher() {
super(false);
getProxy().setIdlePowerUsage(4D);
getProxy().setFlags(GridFlags.REQUIRE_CHANNEL);
this.getProxy().setIdlePowerUsage(4D);
this.getProxy().setFlags(GridFlags.REQUIRE_CHANNEL);
this.source = new MachineSource(this);
invItems.setMaxStackSize(Integer.MAX_VALUE);
this.isFullStockMode = false;
this.isSlotsAccessible = true;
this.isNeedsFullyStocked = false;
this.modeChange = false;
}
private TickRateModulation doWork() {
final TickRateModulation tickRateModulation;
if (this.isFullStockMode()) {
if (this.isNeedsFullyStocked()) {
tickRateModulation = TickRateModulation.FASTER;
} else tickRateModulation = TickRateModulation.SLOWER;
} else tickRateModulation = TickRateModulation.IDLE;
this.fletchFluids();
this.fletchItems();
this.needReCountStoredFluids = true;
this.needReCountStoredItems = true;
return TickRateModulation.SAME;
return tickRateModulation;
}
private void fletchFluids() {
@@ -123,7 +138,8 @@ public class TileSuperStockReplenisher extends AENetworkInvTile implements IAEFl
else if (invFluid.equals(ifs)) {
long invSize = invFluid.getStackSize();
long confSize = ifs.getStackSize();
if (invSize < confSize / 2f) {
if (!this.isFullStockMode() && (invSize < confSize / 2f)
|| (this.isFullStockMode() && (invSize < confSize))) {
ifs.setStackSize(confSize - invSize);
requestFluid(ifs, i);
} else if (invSize > confSize) {
@@ -146,9 +162,11 @@ public class TileSuperStockReplenisher extends AENetworkInvTile implements IAEFl
IAEItemStack is = ais.copy();
if (invItem == null) requestItem(is, i);
else if (is.equals(invItem)) {
int invSize = invItem.stackSize;
int confSize = (int) is.getStackSize();
if (invItem.stackSize < confSize / 2f) {
is.setStackSize(confSize - invItem.stackSize);
if ((!this.isFullStockMode() && (invSize < confSize / 2f))
|| ((this.isFullStockMode()) && (invSize < confSize))) {
is.setStackSize(confSize - invSize);
requestItem(is, i);
} else if (invItem.stackSize > confSize) {
returnItem(i, invItem.stackSize - confSize);
@@ -193,6 +211,7 @@ public class TileSuperStockReplenisher extends AENetworkInvTile implements IAEFl
if (notInserted != null) {
invFluids.fill(index, notInserted, true);
storedFluidCount += notInserted.getStackSize();
checkSlotsAccessible();
}
} catch (final GridAccessException ignored) {}
}
@@ -207,6 +226,7 @@ public class TileSuperStockReplenisher extends AENetworkInvTile implements IAEFl
if (extracted != null) {
storedFluidCount += extracted.getStackSize();
invFluids.fill(index, extracted, true);
checkSlotsAccessible();
}
} catch (final GridAccessException ignored) {}
}
@@ -227,13 +247,15 @@ public class TileSuperStockReplenisher extends AENetworkInvTile implements IAEFl
IAEItemStack notInserted = this.getProxy().getStorage().getItemInventory()
.injectItems(AEItemStack.create(is), Actionable.MODULATE, this.source);
if (notInserted != null) {
ItemStack tempStack = invItems.getStackInSlot(index);
if (tempStack != null) {
if (invItems.getStackInSlot(index) != null) {
ItemStack tempStack = invItems.getStackInSlot(index).copy();
tempStack.stackSize = tempStack.stackSize + (int) notInserted.getStackSize();
saveChanges();
} else invItems.setInventorySlotContents(index, notInserted.getItemStack());
invItems.setInventorySlotContents(index, tempStack);
checkSlotsAccessible();
} else {
invItems.setInventorySlotContents(index, notInserted.getItemStack());
checkSlotsAccessible();
}
this.storedItemCount += notInserted.getStackSize();
}
} catch (final GridAccessException ignored) {}
@@ -247,21 +269,160 @@ public class TileSuperStockReplenisher extends AENetworkInvTile implements IAEFl
IAEItemStack extracted = this.getProxy().getStorage().getItemInventory()
.extractItems(is, Actionable.MODULATE, this.source);
if (extracted != null) {
ItemStack tempStack = invItems.getStackInSlot(index);
if (tempStack != null) {
if (invItems.getStackInSlot(index) != null) {
ItemStack tempStack = invItems.getStackInSlot(index).copy();
tempStack.stackSize = tempStack.stackSize + (int) extracted.getStackSize();
invItems.setInventorySlotContents(index, tempStack);
checkSlotsAccessible();
saveChanges();
} else invItems.setInventorySlotContents(index, extracted.getItemStack());
} else {
invItems.setInventorySlotContents(index, extracted.getItemStack());
checkSlotsAccessible();
}
this.storedItemCount += extracted.getStackSize();
}
} catch (final GridAccessException ignored) {}
}
public boolean isFullStockMode() {
return this.isFullStockMode;
}
public void setFullStockMode(boolean fullStockMode) {
if (this.isFullStockMode == fullStockMode) return;
if (fullStockMode) this.modeChange = true;
this.isFullStockMode = fullStockMode;
checkSlotsAccessible();
this.modeChange = false;
}
public boolean isSlotsAccessible() {
return this.isSlotsAccessible;
}
public boolean isNeedsFullyStocked() {
return this.isNeedsFullyStocked;
}
public boolean hasModeChangedToTrue() {
return this.modeChange;
}
public void setSlotsAccessible() {
if (this.isFullStockMode()) {
if (this.hasModeChangedToTrue()) {
this.isSlotsAccessible = false;
}
if (this.isSlotsAccessible()) {
if ((this.needsFullyStocked())) this.isSlotsAccessible = false;
} else {
if (this.isFullyStocked()) this.isSlotsAccessible = true;
}
} else {
this.isSlotsAccessible = true;
}
}
public void checkSlotsAccessible() {
this.setSlotsAccessible();
this.notifyNeighbors();
}
private boolean needsFullyStocked() {
int configSlots = 0;
int emptySlots = 0;
for (int i = 0; i < 9; i++) {
IAEStack<?> config = configFluids.getAEStackInSlot(i);
if (config instanceof IAEFluidStack cfg) {
configSlots++;
IAEFluidStack inv = invFluids.getFluidInSlot(i);
if (inv == null) {
emptySlots++;
}
}
}
for (int i = 0; i < 63; i++) {
IAEStack<?> config = configItems.getAEStackInSlot(i);
if (config instanceof IAEItemStack cfg) {
configSlots++;
ItemStack inv = invItems.getStackInSlot(i);
if (inv == null) {
emptySlots++;
}
}
}
this.isNeedsFullyStocked = (emptySlots == configSlots) && (configSlots > 0);
return isNeedsFullyStocked;
}
private boolean isFullyStocked() {
for (int i = 0; i < 9; i++) {
IAEStack<?> config = configFluids.getAEStackInSlot(i);
if (config instanceof IAEFluidStack cfg) {
IAEFluidStack cfgFis = cfg.copy();
IAEFluidStack inv = invFluids.getFluidInSlot(i);
if (inv == null || inv.getStackSize() < cfgFis.getStackSize()) {
return false;
}
}
}
for (int i = 0; i < 63; i++) {
IAEStack<?> config = configItems.getAEStackInSlot(i);
if (config instanceof IAEItemStack cfg) {
IAEItemStack cfgIs = cfg.copy();
ItemStack inv = invItems.getStackInSlot(i);
if (inv == null || inv.stackSize < (int) cfgIs.getStackSize()) {
return false;
}
}
}
return true;
}
@Override
public int[] getAccessibleSlotsBySide(ForgeDirection whichSide) {
return IntStream.rangeClosed(0, 62).toArray();
return ((this.isSlotsAccessible()) ? IntStream.rangeClosed(0, 62).toArray() : new int[0]);
}
@Override
public boolean canExtractItem(int slotIndex, ItemStack itemStackIn, int side) {
return this.isSlotsAccessible();
}
public void notifyNeighbors() {
if (this.getWorldObj() != null) {
this.markDirty();
this.getWorldObj().notifyBlocksOfNeighborChange(this.xCoord, this.yCoord, this.zCoord, this.getBlockType());
}
}
@Nonnull
@@ -326,11 +487,7 @@ public class TileSuperStockReplenisher extends AENetworkInvTile implements IAEFl
case setInventorySlotContents -> {
if (inv == cell) {
if (added != null) {
if (added.getItem() instanceof ItemBasicStorageCell ibsc) {
totalBytes = ibsc.getBytesLong(added);
} else if (added.getItem() instanceof FCBaseItemCell fcbic) {
totalBytes = fcbic.getBytes(added);
}
if (added.getItem() instanceof IStorageCell isc) totalBytes = isc.getBytesLong(added);
getProxy().setIdlePowerUsage(Math.sqrt(Math.pow(totalBytes, 0.576D)));
} else if (removed != null) {
totalBytes = 0;
@@ -352,6 +509,8 @@ public class TileSuperStockReplenisher extends AENetworkInvTile implements IAEFl
} catch (GridAccessException e) {
AELog.error(e, "Couldn't wake up level emitter for delayed updates");
}
checkSlotsAccessible();
}
public void fullRefund() {
@@ -404,12 +563,12 @@ public class TileSuperStockReplenisher extends AENetworkInvTile implements IAEFl
@Override
public FluidStack drain(ForgeDirection from, FluidStack resource, boolean doDrain) {
return invFluids.drain(from, resource, doDrain);
return (this.isFullStockMode() && !this.isSlotsAccessible()) ? null : invFluids.drain(from, resource, doDrain);
}
@Override
public FluidStack drain(ForgeDirection from, int maxDrain, boolean doDrain) {
return invFluids.drain(from, maxDrain, doDrain);
return (this.isFullStockMode() && !this.isSlotsAccessible()) ? null : invFluids.drain(from, maxDrain, doDrain);
}
@Override
@@ -419,17 +578,19 @@ public class TileSuperStockReplenisher extends AENetworkInvTile implements IAEFl
@Override
public boolean canDrain(ForgeDirection from, Fluid fluid) {
return invFluids.canDrain(from, fluid);
return (this.isFullStockMode() && !this.isSlotsAccessible()) ? false : invFluids.canDrain(from, fluid);
}
@Override
public FluidTankInfo[] getTankInfo(ForgeDirection from) {
return invFluids.getTankInfo(from);
return (this.isFullStockMode() && !this.isSlotsAccessible()) ? new FluidTankInfo[0]
: invFluids.getTankInfo(from);
}
@Override
public void onFluidInventoryChanged(IAEFluidTank inv, int slot) {
this.markDirty();
checkSlotsAccessible();
}
@Override
@@ -456,6 +617,9 @@ public class TileSuperStockReplenisher extends AENetworkInvTile implements IAEFl
configItems.readFromNBT(data, "configItems");
configFluids.readFromNBT(data, "configFluids");
cell.readFromNBT(data, "cellHolder");
isFullStockMode = data.getBoolean("isFullStockMode");
checkSlotsAccessible();
isSlotsAccessible = data.getBoolean("isSlotsAccessible");
totalBytes = data.getLong("totalBytes");
getProxy().setIdlePowerUsage(data.getDouble("powerDraw"));
}
@@ -467,6 +631,8 @@ public class TileSuperStockReplenisher extends AENetworkInvTile implements IAEFl
configItems.writeToNBT(data, "configItems");
configFluids.writeToNBT(data, "configFluids");
cell.writeToNBT(data, "cellHolder");
data.setBoolean("isFullStockMode", isFullStockMode);
data.setBoolean("isSlotsAccessible", isSlotsAccessible);
data.setLong("totalBytes", totalBytes);
data.setDouble("powerDraw", getProxy().getIdlePowerUsage());
return data;
@@ -517,7 +683,7 @@ public class TileSuperStockReplenisher extends AENetworkInvTile implements IAEFl
@Override
public TickingRequest getTickingRequest(IGridNode node) {
return new TickingRequest(120, 120, false, false);
return new TickingRequest(10, 120, false, false);
}
@Override
@@ -119,7 +119,12 @@ public class NEICellViewHandler implements IUsageHandler {
final String usedBytes = Platform.formatByteDouble(cellHandler.getUsedBytes());
final String totalBytes = Platform.formatByteDouble(cellHandler.getTotalBytes());
fontRenderer.drawString(
usedBytes + " " + GuiText.Of.getLocal() + ' ' + totalBytes + ' ' + GuiText.BytesUsed.getLocal(),
usedBytes + " "
+ GuiText.Of.getLocal()
+ ' '
+ totalBytes
+ ' '
+ GuiText.FromStoragePercent.getLocal(),
OFFSET_X,
INFO_OFFSET_Y,
0);
@@ -124,7 +124,7 @@ ae2fc.tooltip.cell_portable=Right click to open its GUI. It works like a backpac
ae2fc.tooltip.fluid_terminal=uh So we don't need EC2 anymore?
ae2fc.tooltip.level_terminal=uh...
ae2fc.tooltip.invalid_fluid=Invalid fluid!
ae2fc.tooltip.item_fluid_packet=§cIf you unexpect this, then you using §6Interface§c instead of §6Dual Interface
ae2fc.tooltip.item_fluid_packet=§cIf you didn't expect this, then you are using an §6Interface§c instead of a §6Dual Interface
ae2fc.tooltip.encode_pattern=Encode Pattern
ae2fc.tooltip.fluid_packet=Use a Fluid Packet/Drops Decoder to\nconvert this back into fluid.
ae2fc.tooltip.empty=Empty
@@ -174,6 +174,10 @@ ae2fc.tooltip.restock.on=Toggle Restock
ae2fc.tooltip.restock.on.hint=Enable
ae2fc.tooltip.restock.off=Toggle Restock
ae2fc.tooltip.restock.off.hint=Disable
ae2fc.tooltip.Full-stock.mode=Full-stock Mode
ae2fc.tooltip.Full-stock.mode.hint=Stocked items and fluids always visible to storage busses and only after all are fully stocked following the replenisher being fully emptied, and always fully restocked
ae2fc.tooltip.Normal.mode=Normal Mode
ae2fc.tooltip.Normal.mode.hint=Stocked items and fluids always visible to storage busses, and only restocked when below 50%
ae2fc.gui.part_level_terminal=Level Terminal
ae2fc.gui.fluid_pattern_encoder=Fluid Pattern Encoder
@@ -159,6 +159,8 @@ ae2fc.tooltip.restock.on=Toggle Restock
ae2fc.tooltip.restock.on.hint=Enable
ae2fc.tooltip.restock.off=Toggle Restock
ae2fc.tooltip.restock.off.hint=Disable
ae2fc.tooltip.Full-stock.mode=Full-stock Mode
ae2fc.tooltip.Normal.mode=Normal Mode
ae2fc.gui.part_level_terminal=Level Terminal
ae2fc.gui.fluid_pattern_encoder=流体适配型样板编码台
Binary file not shown.

Before

Width:  |  Height:  |  Size: 502 B

After

Width:  |  Height:  |  Size: 1.0 KiB