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 |
FACEHORIZONTAL_FACINGBLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomlydelegate| Modifier | Constructor and Description |
|---|---|
protected |
AbstractButtonBlock(boolean p_i48436_1_,
Block.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProvidePower(BlockState state) |
protected void |
fillStateContainer(StateContainer.Builder<Block,BlockState> builder) |
VoxelShape |
getShape(BlockState state,
IBlockReader worldIn,
BlockPos pos,
ISelectionContext context) |
protected abstract SoundEvent |
getSoundEvent(boolean p_196369_1_) |
int |
getStrongPower(BlockState blockState,
IBlockReader blockAccess,
BlockPos pos,
Direction side) |
int |
getWeakPower(BlockState blockState,
IBlockReader blockAccess,
BlockPos pos,
Direction side) |
boolean |
onBlockActivated(BlockState state,
World worldIn,
BlockPos pos,
PlayerEntity player,
Hand handIn,
BlockRayTraceResult hit) |
void |
onEntityCollision(BlockState state,
World worldIn,
BlockPos pos,
Entity entityIn) |
void |
onReplaced(BlockState state,
World worldIn,
BlockPos pos,
BlockState newState,
boolean isMoving) |
protected void |
playSound(PlayerEntity p_196367_1_,
IWorld p_196367_2_,
BlockPos p_196367_3_,
boolean p_196367_4_) |
void |
tick(BlockState state,
World worldIn,
BlockPos pos,
java.util.Random random) |
int |
tickRate(IWorldReader worldIn) |
func_220185_b, getFacing, getStateForPlacement, isValidPosition, updatePostPlacementmirror, rotateaddInformation, allowsMovement, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, func_220055_a, func_220064_c, func_220074_n, func_220080_a, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderLayer, getRenderShape, getRenderType, getSlipperiness, getSlipperiness, getSoundType, getStateById, getStateContainer, getStateId, getTags, getTranslationKey, getValidBlockForPosition, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasSolidSide, hasTileEntity, isAir, isDirt, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isRock, isSideInvisible, isSolid, isVariableOpacity, makeCuboidShape, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, spawnDrops, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighborsgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canRenderInLayer, catchFire, collisionExtendsVertically, createTileEntity, doesSideBlockRendering, 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, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPowerpublic 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 AbstractButtonBlock(boolean p_i48436_1_,
Block.Properties properties)
public int tickRate(IWorldReader worldIn)
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public boolean onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit)
onBlockActivated in class Blockprotected void playSound(@Nullable
PlayerEntity 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(BlockState state, World worldIn, BlockPos pos, BlockState newState, boolean isMoving)
onReplaced in class Blockpublic int getWeakPower(BlockState blockState, IBlockReader blockAccess, BlockPos pos, Direction side)
getWeakPower in class Blockpublic int getStrongPower(BlockState blockState, IBlockReader blockAccess, BlockPos pos, Direction side)
getStrongPower in class Blockpublic boolean canProvidePower(BlockState state)
canProvidePower in class Blockpublic void tick(BlockState state, World worldIn, BlockPos pos, java.util.Random random)
public void onEntityCollision(BlockState state, World worldIn, BlockPos pos, Entity entityIn)
onEntityCollision in class Blockprotected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer in class Block