public abstract 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) |
java.util.LinkedList<net.minecraft.item.ItemStack> |
getStacksToDisplay(java.util.LinkedList<net.minecraft.item.ItemStack> stackConsumed) |
void |
inventorySlotsToBlueprint(MappingRegistry registry,
net.minecraft.nbt.NBTTagCompound nbt) |
void |
inventorySlotsToBlueprint(MappingRegistry registry,
net.minecraft.nbt.NBTTagCompound nbt,
java.lang.String nbtName) |
void |
inventorySlotsToWorld(MappingRegistry registry,
net.minecraft.nbt.NBTTagCompound nbt) |
void |
inventorySlotsToWorld(MappingRegistry registry,
net.minecraft.nbt.NBTTagCompound nbt,
java.lang.String nbtName) |
boolean |
isAlreadyBuilt(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.
|
void |
transformToBlueprint(MappingRegistry registry,
Translation transform)
Performs a transformations from world to blueprints.
|
void |
transformToWorld(MappingRegistry registry,
Translation transform)
Performs a transformations from blueprints to worlds.
|
net.minecraft.item.ItemStack |
useItem(IBuilderContext context,
net.minecraft.item.ItemStack req,
InventoryIterator.IInvSlot slot)
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,
java.util.LinkedList<net.minecraft.item.ItemStack> stacks)
Places the block in the world, at the location specified in the slot,
using the stack in parameters
|
public boolean isAlreadyBuilt(IBuilderContext context, int x, int y, int z)
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, InventoryIterator.IInvSlot slot)
public void rotateLeft(IBuilderContext context)
public void transformToBlueprint(MappingRegistry registry, Translation transform)
public void transformToWorld(MappingRegistry registry, Translation transform)
public void writeToWorld(IBuilderContext context, int x, int y, int z, java.util.LinkedList<net.minecraft.item.ItemStack> stacks)
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)
public void inventorySlotsToBlueprint(MappingRegistry registry, net.minecraft.nbt.NBTTagCompound nbt)
public void inventorySlotsToBlueprint(MappingRegistry registry, net.minecraft.nbt.NBTTagCompound nbt, java.lang.String nbtName)
public void inventorySlotsToWorld(MappingRegistry registry, net.minecraft.nbt.NBTTagCompound nbt)
public void inventorySlotsToWorld(MappingRegistry registry, net.minecraft.nbt.NBTTagCompound nbt, java.lang.String nbtName)
public java.util.LinkedList<net.minecraft.item.ItemStack> getStacksToDisplay(java.util.LinkedList<net.minecraft.item.ItemStack> stackConsumed)