public class BlockShulkerBox extends BlockContainer
Block.EnumOffsetType
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
Modifier and Type | Field and Description |
---|---|
static PropertyEnum<EnumFacing> |
FACING |
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, isBlockContainer, lightOpacity, lightValue, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightness
delegate
Constructor and Description |
---|
BlockShulkerBox(EnumDyeColor colorIn) |
Modifier and Type | Method and Description |
---|---|
void |
addInformation(ItemStack stack,
EntityPlayer player,
java.util.List<java.lang.String> tooltip,
boolean advanced) |
void |
breakBlock(World worldIn,
BlockPos pos,
IBlockState state)
Called serverside after this block is replaced with another in Chunk, but before the Tile Entity is updated
|
boolean |
causesSuffocation(IBlockState state) |
protected BlockStateContainer |
createBlockState() |
TileEntity |
createNewTileEntity(World worldIn,
int meta)
Returns a new instance of a block's tile entity class.
|
void |
dropBlockAsItemWithChance(World worldIn,
BlockPos pos,
IBlockState state,
float chance,
int fortune)
Spawns this Block's drops into the World as EntityItems.
|
static Block |
getBlockByColor(EnumDyeColor colorIn) |
AxisAlignedBB |
getBoundingBox(IBlockState state,
IBlockAccess source,
BlockPos pos) |
EnumDyeColor |
getColor() |
static ItemStack |
getColoredItemStack(EnumDyeColor colorIn) |
static EnumDyeColor |
getColorFromBlock(Block blockIn) |
static EnumDyeColor |
getColorFromItem(Item itemIn) |
int |
getComparatorInputOverride(IBlockState blockState,
World worldIn,
BlockPos pos) |
ItemStack |
getItem(World worldIn,
BlockPos pos,
IBlockState state) |
int |
getMetaFromState(IBlockState state)
Convert the BlockState into the correct metadata value
|
EnumPushReaction |
getMobilityFlag(IBlockState state) |
EnumBlockRenderType |
getRenderType(IBlockState state)
The type of render function called.
|
IBlockState |
getStateForPlacement(World worldIn,
BlockPos pos,
EnumFacing facing,
float hitX,
float hitY,
float hitZ,
int meta,
EntityLivingBase placer)
Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the
IBlockstate
|
IBlockState |
getStateFromMeta(int meta)
Convert the given metadata into a BlockState for this Block
|
boolean |
hasComparatorInputOverride(IBlockState state) |
boolean |
hasCustomBreakingProgress(IBlockState state) |
boolean |
isFullCube(IBlockState state) |
boolean |
isOpaqueCube(IBlockState state)
Used to determine ambient occlusion and culling when rebuilding chunks for render
|
boolean |
onBlockActivated(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer playerIn,
EnumHand hand,
EnumFacing facing,
float hitX,
float hitY,
float hitZ)
Called when the block is right clicked by a player.
|
void |
onBlockHarvested(World worldIn,
BlockPos pos,
IBlockState state,
EntityPlayer player) |
void |
onBlockPlacedBy(World worldIn,
BlockPos pos,
IBlockState state,
EntityLivingBase placer,
ItemStack stack)
Called by ItemBlocks after a block is set in the world, to allow post-place logic
|
IBlockState |
withMirror(IBlockState state,
Mirror mirrorIn)
Returns the blockstate with the given mirror of the passed blockstate.
|
IBlockState |
withRotation(IBlockState state,
Rotation rot)
Returns the blockstate with the given rotation from the passed blockstate.
|
eventReceived, harvestBlock, hasInvalidNeighbor, isInvalidNeighbor
addCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addHitEffects, addLandingEffects, beginLeavesDecay, canBeConnectedTo, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, createTileEntity, damageDropped, disableStats, doesSideBlockRendering, dropBlockAsItem, dropXpOnBlockBreak, fillWithRain, getActualState, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLayer, getBlockState, getCollisionBoundingBox, getCreativeTabToDisplayOn, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItemDropped, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getOffset, getOffsetType, getPackedLightmapCoords, getPickBlock, getPlayerRelativeBlockHardness, getSelectedBoundingBox, getSilkTouchDrop, getSoundType, getSoundType, getStateById, getStateForPlacement, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, getWeakPower, hasTileEntity, hasTileEntity, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isFertile, isFireSource, isFlammable, isFoliage, isFullBlock, isFullyOpaque, isLadder, isLeaves, isNormalCube, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isTranslucent, isWood, modifyAcceleration, neighborChanged, observedNeighborChange, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockExploded, onEntityCollidedWithBlock, onEntityWalk, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, shouldSideBeRendered, spawnAsEntity, tickRate, toString, updateTick
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public static final PropertyEnum<EnumFacing> FACING
public BlockShulkerBox(EnumDyeColor colorIn)
public TileEntity createNewTileEntity(World worldIn, int meta)
public boolean isOpaqueCube(IBlockState state)
isOpaqueCube
in class Block
public boolean causesSuffocation(IBlockState state)
causesSuffocation
in class Block
public boolean isFullCube(IBlockState state)
isFullCube
in class Block
public boolean hasCustomBreakingProgress(IBlockState state)
hasCustomBreakingProgress
in class Block
public EnumBlockRenderType getRenderType(IBlockState state)
getRenderType
in class BlockContainer
public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
onBlockActivated
in class Block
public IBlockState getStateForPlacement(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)
getStateForPlacement
in class Block
protected BlockStateContainer createBlockState()
createBlockState
in class Block
public int getMetaFromState(IBlockState state)
getMetaFromState
in class Block
public IBlockState getStateFromMeta(int meta)
getStateFromMeta
in class Block
public void onBlockHarvested(World worldIn, BlockPos pos, IBlockState state, EntityPlayer player)
onBlockHarvested
in class Block
public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune)
dropBlockAsItemWithChance
in class Block
public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack)
onBlockPlacedBy
in class Block
public void breakBlock(World worldIn, BlockPos pos, IBlockState state)
breakBlock
in class BlockContainer
public void addInformation(ItemStack stack, EntityPlayer player, java.util.List<java.lang.String> tooltip, boolean advanced)
addInformation
in class Block
public EnumPushReaction getMobilityFlag(IBlockState state)
getMobilityFlag
in class Block
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos)
getBoundingBox
in class Block
public boolean hasComparatorInputOverride(IBlockState state)
hasComparatorInputOverride
in class Block
public int getComparatorInputOverride(IBlockState blockState, World worldIn, BlockPos pos)
getComparatorInputOverride
in class Block
public ItemStack getItem(World worldIn, BlockPos pos, IBlockState state)
public static Block getBlockByColor(EnumDyeColor colorIn)
public static EnumDyeColor getColorFromItem(Item itemIn)
public static ItemStack getColoredItemStack(EnumDyeColor colorIn)
public static EnumDyeColor getColorFromBlock(Block blockIn)
public IBlockState withRotation(IBlockState state, Rotation rot)
withRotation
in class Block
public IBlockState withMirror(IBlockState state, Mirror mirrorIn)
withMirror
in class Block
public EnumDyeColor getColor()