mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-23 08:08:02 -05:00
doc: typo: Storage<Storage> -> Storage<Variant> (#3880)
This commit is contained in:
parent
fafad24292
commit
3dccd3438c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
* }
|
* }
|
||||||
|
|
Loading…
Reference in a new issue