public abstract class BlockButton extends BlockHorizontalFace
Block.EnumOffsetType, Block.Properties, Block.RenderSideCacheKey
Modifier and Type | Field and Description |
---|---|
protected static VoxelShape |
AABB_EAST_OFF |
protected static VoxelShape |
AABB_EAST_ON |
protected static VoxelShape |
AABB_NORTH_OFF |
protected static VoxelShape |
AABB_NORTH_ON |
protected static VoxelShape |
AABB_SOUTH_OFF |
protected static VoxelShape |
AABB_SOUTH_ON |
protected static VoxelShape |
AABB_WEST_OFF |
protected static VoxelShape |
AABB_WEST_ON |
protected static VoxelShape |
field_196370_b |
protected static VoxelShape |
field_196371_c |
protected static VoxelShape |
field_196372_E |
protected static VoxelShape |
field_196373_F |
protected static VoxelShape |
field_196374_G |
protected static VoxelShape |
field_196375_H |
protected static VoxelShape |
field_196376_y |
protected static VoxelShape |
field_196377_z |
static BooleanProperty |
POWERED |
FACE
HORIZONTAL_FACING
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockResistance, blocksMovement, capturedDrops, captureDrops, harvesters, lightValue, LOGGER, material, needsRandomTick, RANDOM, soundType, stateContainer
delegate
Modifier | Constructor and Description |
---|---|
protected |
BlockButton(boolean p_i48436_1_,
Block.Properties builder) |
getFacing, getStateForPlacement, isValidPosition, updatePostPlacement
mirror, rotate
addInformation, allowsMovement, animateTick, asItem, canDropFromExplosion, canEntitySpawn, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, doesSideFillSquare, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getDefaultState, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getItemDropped, getItemsToDropCount, getLightValue, getMapColor, getMaterial, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderLayer, getRenderShape, getRenderType, getSilkTouchDrop, getSlipperiness, getSlipperiness, getSoundType, getStateById, getStateContainer, getStateId, getTickRandomly, getTranslationKey, getValidBlockForPosition, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, isAir, isBlockNormalCube, isCollidable, isCollidable, isDirt, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isRock, isSideInvisible, isSolid, isTopSolid, isVariableOpacity, makeCuboidShape, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, propagatesSkylightDown, quantityDropped, randomTick, registerBlocks, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAsEntity, toString, updateDiagonalNeighbors, updateNeighbors, useNeighborBrightness
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canConnectRedstone, canCreatureSpawn, canEntityDestroy, canHarvestBlock, canPlaceTorchOnTop, canRenderInLayer, createTileEntity, doesSideBlockChestOpening, doesSideBlockRendering, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getDrops, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isNormalCube, isReplaceableOreGen, isStickyBlock, isToolEffective, isTopSolid, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower
public static final BooleanProperty POWERED
protected static final VoxelShape field_196370_b
protected static final VoxelShape field_196371_c
protected static final VoxelShape field_196376_y
protected static final VoxelShape field_196377_z
protected static final VoxelShape AABB_NORTH_OFF
protected static final VoxelShape AABB_SOUTH_OFF
protected static final VoxelShape AABB_WEST_OFF
protected static final VoxelShape AABB_EAST_OFF
protected static final VoxelShape field_196372_E
protected static final VoxelShape field_196373_F
protected static final VoxelShape field_196374_G
protected static final VoxelShape field_196375_H
protected static final VoxelShape AABB_NORTH_ON
protected static final VoxelShape AABB_SOUTH_ON
protected static final VoxelShape AABB_WEST_ON
protected static final VoxelShape AABB_EAST_ON
protected BlockButton(boolean p_i48436_1_, Block.Properties builder)
public int tickRate(IWorldReaderBase worldIn)
public boolean isFullCube(IBlockState state)
isFullCube
in class Block
public VoxelShape getShape(IBlockState state, IBlockReader worldIn, BlockPos pos)
public boolean onBlockActivated(IBlockState state, World worldIn, BlockPos pos, EntityPlayer player, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ)
onBlockActivated
in class Block
protected void playSound(@Nullable EntityPlayer p_196367_1_, IWorld p_196367_2_, BlockPos p_196367_3_, boolean p_196367_4_)
protected abstract SoundEvent getSoundEvent(boolean p_196369_1_)
public void onReplaced(IBlockState state, World worldIn, BlockPos pos, IBlockState newState, boolean isMoving)
onReplaced
in class Block
public int getWeakPower(IBlockState blockState, IBlockReader blockAccess, BlockPos pos, EnumFacing side)
getWeakPower
in class Block
public int getStrongPower(IBlockState blockState, IBlockReader blockAccess, BlockPos pos, EnumFacing side)
getStrongPower
in class Block
public boolean canProvidePower(IBlockState state)
canProvidePower
in class Block
public void tick(IBlockState state, World worldIn, BlockPos pos, java.util.Random random)
public void onEntityCollision(IBlockState state, World worldIn, BlockPos pos, Entity entityIn)
onEntityCollision
in class Block
protected void fillStateContainer(StateContainer.Builder<Block,IBlockState> builder)
fillStateContainer
in class Block
public BlockFaceShape getBlockFaceShape(IBlockReader worldIn, IBlockState state, BlockPos pos, EnumFacing face)
getBlockFaceShape
in class Block