@Deprecated
public class BptBlock
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
blockId
Deprecated.
|
| Constructor and Description |
|---|
BptBlock(int blockId)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRequirements(BptSlotInfo slot,
IBptContext context,
java.util.LinkedList<net.minecraft.item.ItemStack> requirements)
Deprecated.
Returns the requirements needed to build this block.
|
void |
buildBlock(BptSlotInfo slot,
IBptContext context)
Deprecated.
Places the block in the world, at the location specified in the slot.
|
BlockSignature |
getSignature(net.minecraft.block.Block block)
Deprecated.
By default, block class name, block tile name and block name are used to define block signature.
|
boolean |
ignoreBuilding(BptSlotInfo slot)
Deprecated.
Return true if the block should not be placed to the world.
|
void |
initializeFromWorld(BptSlotInfo slot,
IBptContext context,
int x,
int y,
int z)
Deprecated.
Initializes a slot from the blueprint according to an objet placed on {x, y, z} on the world.
|
boolean |
isValid(BptSlotInfo slot,
IBptContext context)
Deprecated.
Return true if the block on the world correspond to the block stored in the blueprint at the location given by the slot.
|
boolean |
match(net.minecraft.block.Block block,
BlockSignature sig)
Deprecated.
By default, block name, block and tile classes, mod name and custom signature are matched to verify if a blueprint block corresponds to the installation
block - except for the default blocks which don't check for classes.
|
void |
postProcessing(BptSlotInfo slot,
IBptContext context)
Deprecated.
Called on a block when the blueprint has finished to place all the blocks.
|
void |
rotateLeft(BptSlotInfo slot,
IBptContext context)
Deprecated.
Perform a 90 degree rotation to the slot.
|
net.minecraft.item.ItemStack |
useItem(BptSlotInfo slot,
IBptContext context,
net.minecraft.item.ItemStack req,
net.minecraft.item.ItemStack stack)
Deprecated.
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.
|
public void addRequirements(BptSlotInfo slot, IBptContext context, java.util.LinkedList<net.minecraft.item.ItemStack> requirements)
public net.minecraft.item.ItemStack useItem(BptSlotInfo slot, IBptContext context, net.minecraft.item.ItemStack req, net.minecraft.item.ItemStack stack)
public boolean isValid(BptSlotInfo slot, IBptContext context)
public void rotateLeft(BptSlotInfo slot, IBptContext context)
public void buildBlock(BptSlotInfo slot, IBptContext context)
public boolean ignoreBuilding(BptSlotInfo slot)
public void initializeFromWorld(BptSlotInfo slot, IBptContext context, int x, int y, int z)
public void postProcessing(BptSlotInfo slot, IBptContext context)
public BlockSignature getSignature(net.minecraft.block.Block block)
public boolean match(net.minecraft.block.Block block,
BlockSignature sig)