doc: typo: Storage<Storage> -> Storage<Variant> (#3880)

This commit is contained in:
Kevin Z 2024-06-25 11:15:05 -06:00 committed by GitHub
parent fafad24292
commit 3dccd3438c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,11 +34,11 @@ import net.fabricmc.fabric.api.transfer.v1.storage.Storage;
* <p>How it works is that fabric registers fallback providers for instances of this interface. * <p>How it works is that fabric registers fallback providers for instances of this interface.
* This can be used for convenient Storage registration, but please always use the SIDED lookups for queries: * This can be used for convenient Storage registration, but please always use the SIDED lookups for queries:
* <pre>{@code * <pre>{@code
* Storage<FluidStorage> maybeFluidStorage = FluidStorage.SIDED.find(world, pos, direction); * Storage<FluidVariant> maybeFluidStorage = FluidStorage.SIDED.find(world, pos, direction);
* if (maybeFluidStorage != null) { * if (maybeFluidStorage != null) {
* // use it * // use it
* } * }
* Storage<ItemStorage> maybeItemStorage = ItemStorage.SIDED.find(world, pos, direction); * Storage<ItemVariant> maybeItemStorage = ItemStorage.SIDED.find(world, pos, direction);
* if (maybeItemStorage != null) { * if (maybeItemStorage != null) {
* // use it * // use it
* } * }