public abstract class MultiBlock extends java.lang.Object implements java.lang.Iterable<BlockState>, net.minecraft.world.IBlockAccess
| Modifier and Type | Field and Description |
|---|---|
protected BlockPos |
offset |
protected int |
rotation |
protected java.util.Map<BlockPos,BlockState> |
states |
| Constructor and Description |
|---|
MultiBlock() |
| Modifier and Type | Method and Description |
|---|---|
void |
breakBlocks(net.minecraft.world.World world,
BlockPos pos) |
protected abstract void |
buildStates() |
boolean |
canPlaceBlockAt(net.minecraft.world.World world,
BlockPos pos) |
boolean |
extendedLevelsInChunkCache() |
net.minecraft.world.biome.BiomeGenBase |
getBiomeGenForCoords(int x,
int z) |
net.minecraft.block.Block |
getBlock(int x,
int y,
int z) |
int |
getBlockMetadata(int x,
int y,
int z) |
BlockState |
getBlockState(BlockPos pos) |
int |
getHeight() |
int |
getLightBrightnessForSkyBlocks(int p_72802_1_,
int p_72802_2_,
int p_72802_3_,
int p_72802_4_) |
net.minecraft.tileentity.TileEntity |
getTileEntity(int x,
int y,
int z) |
boolean |
isAirBlock(int x,
int y,
int z) |
int |
isBlockProvidingPowerTo(int x,
int y,
int z,
int directionIn) |
boolean |
isComplete(net.minecraft.world.World world,
BlockPos pos) |
boolean |
isComplete(net.minecraft.world.World world,
BlockPos pos,
BlockState newState) |
boolean |
isFromMultiblock(BlockPos pos) |
boolean |
isSideSolid(int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection side,
boolean _default) |
java.util.Iterator<BlockState> |
iterator() |
void |
placeBlocks(net.minecraft.world.World world,
BlockPos pos) |
void |
setOffset(BlockPos offset) |
void |
setRotation(int rotation) |
protected java.util.Map<BlockPos,BlockState> states
protected BlockPos offset
protected int rotation
public void setOffset(BlockPos offset)
public void setRotation(int rotation)
public boolean isFromMultiblock(BlockPos pos)
public BlockState getBlockState(BlockPos pos)
public boolean canPlaceBlockAt(net.minecraft.world.World world,
BlockPos pos)
public void placeBlocks(net.minecraft.world.World world,
BlockPos pos)
public void breakBlocks(net.minecraft.world.World world,
BlockPos pos)
public boolean isComplete(net.minecraft.world.World world,
BlockPos pos)
public boolean isComplete(net.minecraft.world.World world,
BlockPos pos,
BlockState newState)
public java.util.Iterator<BlockState> iterator()
iterator in interface java.lang.Iterable<BlockState>protected abstract void buildStates()
public net.minecraft.block.Block getBlock(int x,
int y,
int z)
getBlock in interface net.minecraft.world.IBlockAccesspublic net.minecraft.tileentity.TileEntity getTileEntity(int x,
int y,
int z)
getTileEntity in interface net.minecraft.world.IBlockAccesspublic int getLightBrightnessForSkyBlocks(int p_72802_1_,
int p_72802_2_,
int p_72802_3_,
int p_72802_4_)
getLightBrightnessForSkyBlocks in interface net.minecraft.world.IBlockAccesspublic int getBlockMetadata(int x,
int y,
int z)
getBlockMetadata in interface net.minecraft.world.IBlockAccesspublic int isBlockProvidingPowerTo(int x,
int y,
int z,
int directionIn)
isBlockProvidingPowerTo in interface net.minecraft.world.IBlockAccesspublic boolean isAirBlock(int x,
int y,
int z)
isAirBlock in interface net.minecraft.world.IBlockAccesspublic net.minecraft.world.biome.BiomeGenBase getBiomeGenForCoords(int x,
int z)
getBiomeGenForCoords in interface net.minecraft.world.IBlockAccesspublic int getHeight()
getHeight in interface net.minecraft.world.IBlockAccesspublic boolean extendedLevelsInChunkCache()
extendedLevelsInChunkCache in interface net.minecraft.world.IBlockAccesspublic boolean isSideSolid(int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection side,
boolean _default)
isSideSolid in interface net.minecraft.world.IBlockAccess