public class QuarterSymmetricalStructure.BlockWrapper
extends java.lang.Object
Block and
pairs with it the metadata for that specific block instance.| Modifier and Type | Field and Description |
|---|---|
QuarterSymmetricalStructure.IBlockAction |
action
An optional action after a block has been placed.
|
net.minecraft.block.Block |
block
Block for which this instance is a wrapper. |
float |
chance
Chance of spawning
|
int |
metadata
Metadata which should be used for the specific
Block. |
| Constructor and Description |
|---|
QuarterSymmetricalStructure.BlockWrapper(net.minecraft.block.Block block)
Creates a new wrapper around the specified
Block with metadata 0. |
QuarterSymmetricalStructure.BlockWrapper(net.minecraft.block.Block block,
int metadata)
Creates a new wrapper around the specified
Block with the specified metadata. |
QuarterSymmetricalStructure.BlockWrapper(net.minecraft.block.Block block,
int metadata,
float chance)
Creates a new wrapper around the specified
Block with the specified metadata and a certain chance. |
public net.minecraft.block.Block block
Block for which this instance is a wrapper.public int metadata
Block.public float chance
public QuarterSymmetricalStructure.IBlockAction action
public QuarterSymmetricalStructure.BlockWrapper(net.minecraft.block.Block block)
Block with metadata 0.block - The block to wrap.public QuarterSymmetricalStructure.BlockWrapper(net.minecraft.block.Block block,
int metadata)
Block with the specified metadata.block - The block to wrap.metadata - The metadata of the block.public QuarterSymmetricalStructure.BlockWrapper(net.minecraft.block.Block block,
int metadata,
float chance)
Block with the specified metadata and a certain chance.block - The block to wrap.metadata - The metadata of the block.chance - The chance on spawning.