Skip to content

Commit

Permalink
move methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Dec 27, 2024
1 parent b57cee8 commit 642b702
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions src/main/java/gregtech/api/capability/impl/FluidTankList.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Entry> 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)
Expand Down Expand Up @@ -174,31 +199,6 @@ public void deserializeNBT(NBTTagCompound nbt) {
}
}

@Override
public IFluidTankProperties[] getTankProperties() {
return this.tanks;
}

@Override
public @NotNull List<Entry> 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);
Expand Down

0 comments on commit 642b702

Please sign in to comment.