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,
int x,
int y,
int z)
Get the path to the documentation page for the provided block.
|
java.lang.String pathFor(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.java.lang.String pathFor(net.minecraft.world.World world,
int x,
int y,
int z)
Return null if there is no known page for this item, allowing other providers to be queried.
world - the world containing the block.x - the x coordinate of the block.y - the y coordinate of the block.z - the z coordinate of the block.