public class LeverBlock extends HorizontalFaceBlock
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey| Modifier and Type | Field and Description |
|---|---|
protected static VoxelShape |
CEILING_X_SHAPE |
protected static VoxelShape |
CEILING_Z_SHAPE |
protected static VoxelShape |
FLOOR_X_SHAPE |
protected static VoxelShape |
FLOOR_Z_SHAPE |
protected static VoxelShape |
LEVER_EAST_AABB |
protected static VoxelShape |
LEVER_NORTH_AABB |
protected static VoxelShape |
LEVER_SOUTH_AABB |
protected static VoxelShape |
LEVER_WEST_AABB |
static BooleanProperty |
POWERED |
FACEHORIZONTAL_FACINGBLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomlydelegate| Modifier | Constructor and Description |
|---|---|
protected |
LeverBlock(Block.Properties builder) |
func_220185_b, getFacing, getStateForPlacement, isValidPosition, updatePostPlacementmirror, rotateaddInformation, allowsMovement, 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, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, tick, tickRate, 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, 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, shouldDisplayFluidOverlaypublic static final BooleanProperty POWERED
protected static final VoxelShape LEVER_NORTH_AABB
protected static final VoxelShape LEVER_SOUTH_AABB
protected static final VoxelShape LEVER_WEST_AABB
protected static final VoxelShape LEVER_EAST_AABB
protected static final VoxelShape FLOOR_Z_SHAPE
protected static final VoxelShape FLOOR_X_SHAPE
protected static final VoxelShape CEILING_Z_SHAPE
protected static final VoxelShape CEILING_X_SHAPE
protected LeverBlock(Block.Properties builder)
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 Blockpublic BlockState func_226939_d_(BlockState p_226939_1_, World p_226939_2_, BlockPos p_226939_3_)
private static void addParticles(BlockState state, IWorld worldIn, BlockPos pos, float alpha)
public void animateTick(BlockState stateIn, World worldIn, BlockPos pos, java.util.Random rand)
animateTick in class Blockpublic 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 Blockprivate void updateNeighbors(BlockState p_196378_1_, World p_196378_2_, BlockPos p_196378_3_)
protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer in class Block