4747public class MetaTileEntityFluidHatch extends MetaTileEntityMultiblockNotifiablePart
4848 implements IMultiblockAbilityPart <IFluidTank >, IControllable {
4949
50- private static final int INITIAL_INVENTORY_SIZE = 8000 ;
50+ public static final int INITIAL_INVENTORY_SIZE = 8000 ;
5151
5252 // only holding this for convenience
53- private final HatchFluidTank fluidTank ;
54- private boolean workingEnabled ;
53+ protected final HatchFluidTank fluidTank ;
54+ protected boolean workingEnabled ;
5555
5656 // export hatch-only fields
57- private boolean locked ;
57+ protected boolean locked ;
5858 @ Nullable
59- private FluidStack lockedFluid ;
59+ protected FluidStack lockedFluid ;
6060
6161 public MetaTileEntityFluidHatch (ResourceLocation metaTileEntityId , int tier , boolean isExportHatch ) {
6262 super (metaTileEntityId , tier , isExportHatch );
@@ -176,7 +176,7 @@ public void renderMetaTileEntity(CCRenderState renderState, Matrix4 translation,
176176 }
177177 }
178178
179- private int getInventorySize () {
179+ protected int getInventorySize () {
180180 return INITIAL_INVENTORY_SIZE * (1 << Math .min (9 , getTier ()));
181181 }
182182
@@ -268,7 +268,7 @@ public ModularUI.Builder createTankUI(IFluidTank fluidTank, String title, Entity
268268 .bindPlayerInventory (entityPlayer .inventory );
269269 }
270270
271- private Consumer <List <ITextComponent >> getFluidNameText (TankWidget tankWidget ) {
271+ protected Consumer <List <ITextComponent >> getFluidNameText (TankWidget tankWidget ) {
272272 return (list ) -> {
273273 TextComponentTranslation translation = tankWidget .getFluidTextComponent ();
274274 // If there is no fluid in the tank, but there is a locked fluid
@@ -282,7 +282,7 @@ private Consumer<List<ITextComponent>> getFluidNameText(TankWidget tankWidget) {
282282 };
283283 }
284284
285- private Consumer <List <ITextComponent >> getFluidAmountText (TankWidget tankWidget ) {
285+ protected Consumer <List <ITextComponent >> getFluidAmountText (TankWidget tankWidget ) {
286286 return (list ) -> {
287287 String fluidAmount = "" ;
288288
@@ -339,7 +339,7 @@ private void setLocked(boolean locked) {
339339 fluidTank .onContentsChanged ();
340340 }
341341
342- private class HatchFluidTank extends NotifiableFluidTank implements IFilteredFluidContainer , IFilter <FluidStack > {
342+ protected class HatchFluidTank extends NotifiableFluidTank implements IFilteredFluidContainer , IFilter <FluidStack > {
343343
344344 public HatchFluidTank (int capacity , MetaTileEntity entityToNotify , boolean isExport ) {
345345 super (capacity , entityToNotify , isExport );
0 commit comments