public final class GameRegistryPathProvider extends java.lang.Object implements PathProvider
| Constructor and Description |
|---|
GameRegistryPathProvider() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
pathFor(net.minecraft.item.ItemStack stack)
Get the path to the documentation page for the provided item stack.
|
java.lang.String |
pathFor(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Get the path to the documentation page for the provided block.
|
public java.lang.String pathFor(@Nullable
net.minecraft.item.ItemStack stack)
PathProviderReturn null if there is no known page for this item, allowing other providers to be queried.
pathFor in interface PathProviderstack - the stack to get the documentation path to.public java.lang.String pathFor(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
PathProviderReturn null if there is no known page for this item, allowing other providers to be queried.
pathFor in interface PathProviderworld - the world containing the block.pos - the position coordinate of the block.