public interface IMergedBlock
Block or a IBlockComponent associated to a block, that can be merged with the one in
the player's hand.SlabComponent), or converting walls into corners (see WallComponent).| Modifier and Type | Method and Description |
|---|---|
boolean |
canMerge(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
Checks whether the current
IBlockState can be merged into another one. |
net.minecraft.block.state.IBlockState |
mergeBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ)
Merges the
IBlockState. |
default boolean |
mergeSelfOnly() |
boolean canMerge(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
IBlockState can be merged into another one.itemStack - the item stackplayer - the playerworld - the worldpos - the posside - the sidenet.minecraft.block.state.IBlockState mergeBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ)
IBlockState.world - the worldpos - the posstate - the stateitemStack - the item stackplayer - the playerside - the sidehitX - the hit xhitY - the hit yhitZ - the hit zIBlockState resulting of the merge, null if no merge is possible.default boolean mergeSelfOnly()