From ceabd7613a27f034c6d6b42dcf02fb53b01aee89 Mon Sep 17 00:00:00 2001 From: deirn Date: Sun, 3 Sep 2023 18:46:52 +0700 Subject: [PATCH] Mark `SidedStorageBlockEntity`'s side as nullable (#3281) (cherry picked from commit 195226a756585ea2cb4f18a0028b2cdb43fd0f1b) --- .../transfer/v1/storage/base/SidedStorageBlockEntity.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric/api/transfer/v1/storage/base/SidedStorageBlockEntity.java b/fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric/api/transfer/v1/storage/base/SidedStorageBlockEntity.java index 09c20208fa..b7f466271b 100644 --- a/fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric/api/transfer/v1/storage/base/SidedStorageBlockEntity.java +++ b/fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric/api/transfer/v1/storage/base/SidedStorageBlockEntity.java @@ -47,19 +47,23 @@ public interface SidedStorageBlockEntity { /** * Return a fluid storage if available on the queried side, or null otherwise. + * + * @param side The side of the storage to query, {@code null} means that the full storage without the restriction should be returned instead. */ @ApiStatus.OverrideOnly @Nullable - default Storage getFluidStorage(Direction side) { + default Storage getFluidStorage(@Nullable Direction side) { return null; } /** * Return an item storage if available on the queried side, or null otherwise. + * + * @param side The side of the storage to query, {@code null} means that the full storage without the restriction should be returned instead. */ @ApiStatus.OverrideOnly @Nullable - default Storage getItemStorage(Direction side) { + default Storage getItemStorage(@Nullable Direction side) { return null; } }