public class Schematic
extends java.lang.Object
| Constructor and Description |
|---|
Schematic() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRequirements(IBuilderContext context,
java.util.LinkedList<net.minecraft.item.ItemStack> requirements)
Returns the requirements needed to build this block.
|
java.util.LinkedList<net.minecraft.item.ItemStack> |
getRequirements(IBuilderContext context) |
boolean |
ignoreBuilding()
Return true if the block should not be placed to the world.
|
boolean |
isValid(IBuilderContext context,
int x,
int y,
int z)
Return true if the block on the world correspond to the block stored in
the blueprint at the location given by the slot.
|
void |
postProcessing(IBuilderContext context,
int x,
int y,
int z)
Called on a block when the blueprint has finished to place all the
blocks.
|
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt,
MappingRegistry registry) |
void |
readFromWorld(IBuilderContext context,
int x,
int y,
int z)
Initializes a slot from the blueprint according to an objet placed on {x,
y, z} on the world.
|
void |
rotateLeft(IBuilderContext context)
Perform a 90 degree rotation to the slot.
|
net.minecraft.item.ItemStack |
useItem(IBuilderContext context,
net.minecraft.item.ItemStack req,
net.minecraft.item.ItemStack stack)
This is called each time an item matches a reqquirement, that is: (req id
== stack id) for damageable items (req id == stack id && req dmg == stack
dmg) for other items by default, it will increase damage of damageable
items by the amount of damage of the requirement, and remove the intended
amount of non damageable item.
|
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbt,
MappingRegistry registry) |
void |
writeToWorld(IBuilderContext context,
int x,
int y,
int z)
Places the block in the world, at the location specified in the slot.
|
public final java.util.LinkedList<net.minecraft.item.ItemStack> getRequirements(IBuilderContext context)
public void addRequirements(IBuilderContext context, java.util.LinkedList<net.minecraft.item.ItemStack> requirements)
public net.minecraft.item.ItemStack useItem(IBuilderContext context, net.minecraft.item.ItemStack req, net.minecraft.item.ItemStack stack)
public boolean isValid(IBuilderContext context, int x, int y, int z)
public void rotateLeft(IBuilderContext context)
public void writeToWorld(IBuilderContext context, int x, int y, int z)
public boolean ignoreBuilding()
public void readFromWorld(IBuilderContext context, int x, int y, int z)
public void postProcessing(IBuilderContext context, int x, int y, int z)
public void writeToNBT(net.minecraft.nbt.NBTTagCompound nbt,
MappingRegistry registry)
public void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt,
MappingRegistry registry)