public abstract class AbstractButtonBlock extends HorizontalFaceBlock
Block.OffsetType, 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 |
private boolean |
wooden |
FACE
HORIZONTAL_FACING
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomly
delegate
Modifier | Constructor and Description |
---|---|
protected |
AbstractButtonBlock(boolean isWooden,
Block.Properties properties) |
func_220185_b, getFacing, getStateForPlacement, isValidPosition, updatePostPlacement
mirror, rotate
addInformation, allowsMovement, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getRenderType, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateId, getTags, getTranslationKey, getValidBlockForPosition, harvestBlock, hasComparatorInputOverride, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isTransparent, isVariableOpacity, isViewBlocking, makeCuboidShape, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isSlimeBlock, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
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
private final boolean wooden
protected AbstractButtonBlock(boolean isWooden, Block.Properties properties)
public int tickRate(IWorldReader worldIn)
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit)
onBlockActivated
in class Block
public void func_226910_d_(BlockState p_226910_1_, World p_226910_2_, BlockPos p_226910_3_)
protected void playSound(@Nullable PlayerEntity playerIn, IWorld worldIn, BlockPos pos, boolean p_196367_4_)
protected abstract SoundEvent getSoundEvent(boolean p_196369_1_)
public void onReplaced(BlockState state, World worldIn, BlockPos pos, BlockState newState, boolean isMoving)
onReplaced
in class Block
public int getWeakPower(BlockState blockState, IBlockReader blockAccess, BlockPos pos, Direction side)
getWeakPower
in class Block
public int getStrongPower(BlockState blockState, IBlockReader blockAccess, BlockPos pos, Direction side)
getStrongPower
in class Block
public boolean canProvidePower(BlockState state)
canProvidePower
in class Block
public void tick(BlockState state, ServerWorld worldIn, BlockPos pos, java.util.Random rand)
public void onEntityCollision(BlockState state, World worldIn, BlockPos pos, Entity entityIn)
onEntityCollision
in class Block
private void checkPressed(BlockState state, World worldIn, BlockPos pos)
private void updateNeighbors(BlockState state, World worldIn, BlockPos pos)
protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer
in class Block