From 77c4fb5070359e63537cdb4aa4511fe7294f3ea3 Mon Sep 17 00:00:00 2001 From: deirn Date: Sun, 4 Aug 2024 16:59:20 +0700 Subject: [PATCH] hide internal protected members --- src/api/java/mcp/mobius/waila/api/data/FluidData.java | 5 ++++- src/api/java/mcp/mobius/waila/api/data/ItemData.java | 1 + src/api/java/mcp/mobius/waila/api/data/ProgressData.java | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/api/java/mcp/mobius/waila/api/data/FluidData.java b/src/api/java/mcp/mobius/waila/api/data/FluidData.java index aa1df44ba..233220630 100644 --- a/src/api/java/mcp/mobius/waila/api/data/FluidData.java +++ b/src/api/java/mcp/mobius/waila/api/data/FluidData.java @@ -298,7 +298,8 @@ public interface FluidDescriptionContext { @ApiStatus.OverrideOnly public interface CauldronDescriptor { - @Nullable FluidData getCauldronFluidData(BlockState state); + @Nullable + FluidData getCauldronFluidData(BlockState state); } @@ -333,8 +334,10 @@ public interface PlatformTranslator { // ----------------------------------------------------------------------------------------------------------------------------------------------- + /** @hidden */ protected abstract PlatformTranslator translator(); + /** @hidden */ protected abstract void implAdd(Fluid fluid, DataComponentPatch data, double stored, double capacity); } diff --git a/src/api/java/mcp/mobius/waila/api/data/ItemData.java b/src/api/java/mcp/mobius/waila/api/data/ItemData.java index cd118de37..290c7d863 100644 --- a/src/api/java/mcp/mobius/waila/api/data/ItemData.java +++ b/src/api/java/mcp/mobius/waila/api/data/ItemData.java @@ -92,6 +92,7 @@ public ItemData ensureSpace(int length) { // ----------------------------------------------------------------------------------------------------------------------------------------------- + /** @hidden */ protected final ArrayList items = new ArrayList<>(); } diff --git a/src/api/java/mcp/mobius/waila/api/data/ProgressData.java b/src/api/java/mcp/mobius/waila/api/data/ProgressData.java index 93a4be087..2fe34ed1b 100644 --- a/src/api/java/mcp/mobius/waila/api/data/ProgressData.java +++ b/src/api/java/mcp/mobius/waila/api/data/ProgressData.java @@ -154,8 +154,13 @@ public ProgressData ensureOutputSpace(int length) { // ----------------------------------------------------------------------------------------------------------------------------------------------- + /** @hidden */ protected final ArrayList input = new ArrayList<>(); + + /** @hidden */ protected final ArrayList output = new ArrayList<>(); + + /** @hidden */ protected IntFunction inventory; @ApiStatus.Internal