public class BptContext extends java.lang.Object implements IBptContext
| Constructor and Description |
|---|
BptContext(net.minecraft.world.World world,
BptBlueprint bpt,
Box box) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.item.ItemStack |
mapItemStack(net.minecraft.item.ItemStack bptItemStack)
If bptItemStack is an ItemStack extracted from the blueprint containing this mapping, this will return an item stack with the id of the current world
|
int |
mapWorldId(int bptWorldId)
Blueprints may be created in a world with a given id setting, and then ported to a world with different ids.
|
void |
rotateLeft() |
Position |
rotatePositionLeft(Position pos) |
void |
storeId(int worldId)
This asks the id mapping to store a mapping from this Id, which may be either an itemId or a blockId.
|
IBox |
surroundingBox() |
net.minecraft.world.World |
world() |
public BptContext(net.minecraft.world.World world,
BptBlueprint bpt,
Box box)
public net.minecraft.item.ItemStack mapItemStack(net.minecraft.item.ItemStack bptItemStack)
IBptContextmapItemStack in interface IBptContextpublic int mapWorldId(int bptWorldId)
IBptContextmapWorldId in interface IBptContextpublic void storeId(int worldId)
IBptContextstoreId in interface IBptContextpublic Position rotatePositionLeft(Position pos)
rotatePositionLeft in interface IBptContextpublic IBox surroundingBox()
surroundingBox in interface IBptContextpublic net.minecraft.world.World world()
world in interface IBptContextpublic void rotateLeft()