@AutoLoad public abstract class MultiBlock extends java.lang.Object implements java.lang.Iterable<MBlockState>
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.util.math.BlockPos |
offset |
static java.lang.String |
ORIGIN_BLOCK_DATA |
protected net.minecraft.block.properties.PropertyDirection |
property |
protected java.util.Map<net.minecraft.util.math.BlockPos,MBlockState> |
states |
| Constructor and Description |
|---|
MultiBlock() |
| Modifier and Type | Method and Description |
|---|---|
void |
breakBlocks(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
protected abstract void |
buildStates() |
boolean |
canPlaceBlockAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
boolean placeOrigin) |
static net.minecraft.util.math.BlockPos |
getOrigin(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
int |
getRotation() |
MBlockState |
getState(net.minecraft.util.math.BlockPos pos) |
boolean |
isBulkBreak() |
boolean |
isBulkPlace() |
boolean |
isComplete(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
boolean |
isComplete(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
MBlockState newState) |
boolean |
isFromMultiblock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
static boolean |
isOrigin(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
java.util.Iterator<MBlockState> |
iterator() |
void |
placeBlocks(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
boolean placeOrigin) |
static void |
registerBlockData() |
void |
setBulkProcess(boolean bulkPlace,
boolean bulkBreak) |
void |
setOffset(net.minecraft.util.math.BlockPos offset) |
void |
setPropertyDirection(net.minecraft.block.properties.PropertyDirection property) |
void |
setRotation(net.minecraft.block.state.IBlockState state) |
public static java.lang.String ORIGIN_BLOCK_DATA
protected java.util.Map<net.minecraft.util.math.BlockPos,MBlockState> states
protected net.minecraft.util.math.BlockPos offset
protected net.minecraft.block.properties.PropertyDirection property
public void setOffset(net.minecraft.util.math.BlockPos offset)
public void setPropertyDirection(net.minecraft.block.properties.PropertyDirection property)
public void setRotation(net.minecraft.block.state.IBlockState state)
public int getRotation()
public void setBulkProcess(boolean bulkPlace,
boolean bulkBreak)
public boolean isBulkPlace()
public boolean isBulkBreak()
public boolean isFromMultiblock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
public MBlockState getState(net.minecraft.util.math.BlockPos pos)
public boolean canPlaceBlockAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
boolean placeOrigin)
public void placeBlocks(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
boolean placeOrigin)
public void breakBlocks(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
public boolean isComplete(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
public boolean isComplete(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
MBlockState newState)
public java.util.Iterator<MBlockState> iterator()
iterator in interface java.lang.Iterable<MBlockState>protected abstract void buildStates()
public static void registerBlockData()
public static net.minecraft.util.math.BlockPos getOrigin(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
public static boolean isOrigin(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)