From 642b7025f672e97324427ec15bf81fdddb50fbc3 Mon Sep 17 00:00:00 2001 From: Ghzdude <44148655+ghzdude@users.noreply.github.com> Date: Thu, 26 Dec 2024 22:55:17 -0700 Subject: [PATCH] move methods --- .../api/capability/impl/FluidTankList.java | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/main/java/gregtech/api/capability/impl/FluidTankList.java b/src/main/java/gregtech/api/capability/impl/FluidTankList.java index 770be604bef..58739e93fee 100644 --- a/src/main/java/gregtech/api/capability/impl/FluidTankList.java +++ b/src/main/java/gregtech/api/capability/impl/FluidTankList.java @@ -49,6 +49,31 @@ public FluidTankList(boolean allowSameFluidFill, @NotNull MultipleTankHandler pa this.allowSameFluidFill = allowSameFluidFill; } + @Override + public IFluidTankProperties[] getTankProperties() { + return this.tanks; + } + + @Override + public @NotNull List getFluidTanks() { + return Collections.unmodifiableList(Arrays.asList(this.tanks)); + } + + @Override + public int size() { + return tanks.length; + } + + @Override + public @NotNull Entry getTankAt(int index) { + return tanks[index]; + } + + @Override + public boolean allowSameFluidFill() { + return allowSameFluidFill; + } + @Override public int fill(FluidStack resource, boolean doFill) { if (resource == null || resource.amount <= 0) @@ -174,31 +199,6 @@ public void deserializeNBT(NBTTagCompound nbt) { } } - @Override - public IFluidTankProperties[] getTankProperties() { - return this.tanks; - } - - @Override - public @NotNull List getFluidTanks() { - return Collections.unmodifiableList(Arrays.asList(this.tanks)); - } - - @Override - public int size() { - return tanks.length; - } - - @Override - public @NotNull Entry getTankAt(int index) { - return tanks[index]; - } - - @Override - public boolean allowSameFluidFill() { - return allowSameFluidFill; - } - @Override public String toString() { return toString(false);