public class LadderComponent extends java.lang.Object implements IBlockComponent
| Constructor and Description |
|---|
LadderComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canBlockStay(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side) |
boolean |
canPlaceBlockAt(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Whether the
Block can be placed at the position. |
boolean |
canPlaceBlockOnSide(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
Whether the
Block can be placed on the side of another block. |
net.minecraft.util.math.AxisAlignedBB |
getBoundingBox(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 box for the
Block. |
java.util.List<IComponent> |
getDependencies()
Gets the additional components that this
IComponent depends on. |
net.minecraft.block.properties.IProperty<?> |
getProperty()
Gets the
IProperty used by this IBlockComponent. |
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. |
void |
onNeighborBlockChange(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.block.Block neighborBlock,
net.minecraft.util.math.BlockPos neighborPos)
Called when a neighboring
Block changes. |
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, canProvidePower, damageDropped, getBoundingBoxes, getHasSubtypes, getItem, getItemDropped, getLightOpacity, getMapColor, getMetaFromState, getPackedLightmapCoords, getProperties, getStateForPlacement, getStateFromMeta, getSubBlocks, getUnlocalizedName, isFullBlock, onBlockActivated, onBlockAdded, onBlockPlacedBy, quantityDropped, shouldSideBeRenderedgetComponent, isClientComponent, onComponentAddedpublic net.minecraft.block.properties.IProperty<?> getProperty()
IBlockComponentIProperty used by this IBlockComponent.getProperty 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 java.util.List<IComponent> getDependencies()
IComponentIComponent depends on.getDependencies in interface IComponentprotected boolean canBlockStay(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
public void onNeighborBlockChange(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.block.Block neighborBlock,
net.minecraft.util.math.BlockPos neighborPos)
IBlockComponentBlock changes.onNeighborBlockChange in interface IBlockComponentblock - the blockworld - the worldpos - the posstate - the stateneighborBlock - the neighbor blockneighborPos - TODOpublic net.minecraft.util.math.AxisAlignedBB getBoundingBox(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.getBoundingBox in interface IBlockComponentworld - the worldpos - the postype - the typepublic boolean canPlaceBlockOnSide(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
IBlockComponentBlock can be placed on the side of another block.canPlaceBlockOnSide in interface IBlockComponentblock - the blockworld - the worldpos - the posside - the sidepublic boolean canPlaceBlockAt(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
IBlockComponentBlock can be placed at the position.canPlaceBlockAt in interface IBlockComponentworld - the worldpos - the pospublic 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 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 state