From b8e526614bb8657a23d3ce9a3d0515148bb86885 Mon Sep 17 00:00:00 2001 From: deirn Date: Sun, 27 Aug 2023 12:29:36 +0700 Subject: [PATCH] mark `SidedStorageBlockEntity`'s side as nullable --- .../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; } }