public class PaneComponent extends java.lang.Object implements IBlockComponent, ISmartCull
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.block.properties.PropertyBool |
EAST |
static net.minecraft.block.properties.PropertyBool |
NORTH |
static net.minecraft.block.properties.PropertyBool |
SOUTH |
static net.minecraft.block.properties.PropertyBool |
WEST |
| Constructor and Description |
|---|
PaneComponent() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPaneConnectTo(net.minecraft.block.Block block,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing dir) |
boolean |
canPaneConnectToBlock(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state) |
net.minecraft.util.math.AxisAlignedBB[] |
getBoundingBoxes(net.minecraft.block.Block block,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
BoundingBoxType type)
Gets the bounding boxes for the
Block. |
net.minecraft.block.state.IBlockState |
getFullState(net.minecraft.block.Block block,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.block.properties.IProperty<?>[] |
getProperties()
Gets the all the
properties used by this IBlockComponent. |
net.minecraft.block.properties.IProperty<?> |
getProperty()
Gets the
IProperty used by this IBlockComponent. |
static boolean |
isConnected(net.minecraft.block.state.IBlockState state,
net.minecraft.block.properties.PropertyBool property) |
java.lang.Boolean |
isFullCube(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Checks whether this
IBlockComponent represents a full cube. |
java.lang.Boolean |
isOpaqueCube(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Checks whether this
IBlockComponent represents an opaque cube. |
net.minecraft.block.state.IBlockState |
setDefaultState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
Sets the default values for the
IBlockState. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbreakBlock, canPlaceBlockAt, canPlaceBlockOnSide, damageDropped, getBoundingBox, getItem, getItemDropped, getLightOpacity, getMapColor, getMetaFromState, getPackedLightmapCoords, getStateFromMeta, getSubBlocks, getUnlocalizedName, isFullBlock, onBlockActivated, onBlockAdded, onBlockPlaced, onBlockPlacedBy, onNeighborBlockChange, quantityDropped, shouldSideBeRenderedgetComponent, getDependencies, isClientComponentshouldSmartCull, shouldSmartCullpublic static final net.minecraft.block.properties.PropertyBool NORTH
public static final net.minecraft.block.properties.PropertyBool EAST
public static final net.minecraft.block.properties.PropertyBool SOUTH
public static final net.minecraft.block.properties.PropertyBool WEST
public net.minecraft.block.properties.IProperty<?> getProperty()
IBlockComponentIProperty used by this IBlockComponent.getProperty in interface IBlockComponentpublic net.minecraft.block.properties.IProperty<?>[] getProperties()
IBlockComponentproperties used by this IBlockComponent.getProperties in interface IBlockComponentpublic net.minecraft.block.state.IBlockState setDefaultState(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
IBlockComponentIBlockState.setDefaultState in interface IBlockComponentblock - the blockstate - the statepublic net.minecraft.block.state.IBlockState getFullState(net.minecraft.block.Block block,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
public net.minecraft.util.math.AxisAlignedBB[] getBoundingBoxes(net.minecraft.block.Block block,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
BoundingBoxType type)
IBlockComponentBlock.getBoundingBoxes in interface IBlockComponentblock - the blockworld - the worldpos - the postype - the typepublic java.lang.Boolean isFullCube(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
IBlockComponentIBlockComponent represents a full cube.isFullCube in interface IBlockComponentblock - the blockstate - the statepublic java.lang.Boolean isOpaqueCube(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
IBlockComponentIBlockComponent represents an opaque cube.isOpaqueCube in interface IBlockComponentblock - the blockstate - the statepublic final boolean canPaneConnectToBlock(net.minecraft.block.Block block,
net.minecraft.block.state.IBlockState state)
public boolean canPaneConnectTo(net.minecraft.block.Block block,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing dir)
public static boolean isConnected(net.minecraft.block.state.IBlockState state,
net.minecraft.block.properties.PropertyBool property)