public interface PathProvider
This is used for generating NEI usage pages with a button opening the manual on the page at the specified path, or for opening the manual when held in hand and sneak-activating a block in the world.
This way you can easily make entries in your documentation available the same way OpenComputers does it itself.
Note that you can use the special variable %LANGUAGE% in your paths, for language agnostic paths. These will be resolved to the currently set language, falling back to en_US, during actual content lookup.
| 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.
|
@Nullable
java.lang.String pathFor(@Nullable
net.minecraft.item.ItemStack stack)
Return null if there is no known page for this item, allowing other providers to be queried.
stack - the stack to get the documentation path to.@Nullable
java.lang.String pathFor(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Return null if there is no known page for this item, allowing other providers to be queried.
world - the world containing the block.pos - the position coordinate of the block.