public class LeverBlock extends WallMountedBlock
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>| Modifier and Type | Field and Description |
|---|---|
protected static VoxelShape |
CEILING_X_AXIS_SHAPE |
protected static VoxelShape |
CEILING_Z_AXIS_SHAPE |
protected static VoxelShape |
EAST_WALL_SHAPE |
protected static VoxelShape |
FLOOR_X_AXIS_SHAPE |
protected static VoxelShape |
FLOOR_Z_AXIS_SHAPE |
protected static VoxelShape |
NORTH_WALL_SHAPE |
static BooleanProperty |
POWERED |
protected static VoxelShape |
SOUTH_WALL_SHAPE |
protected static VoxelShape |
WEST_WALL_SHAPE |
FACEFACINGLOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Modifier | Constructor and Description |
|---|---|
protected |
LeverBlock(AbstractBlock.Settings settings) |
canPlaceAt, canPlaceAt, getDirection, getPlacementState, getStateForNeighborUpdatemirror, rotateaddStacksForDisplay, afterBreak, asBlock, asItem, buildTooltip, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isIn, isShapeFullCube, isSideSolidFullSquare, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, replaceBlock, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringcalcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getPistonBehavior, getRayTraceShape, getRenderingSeed, getRenderType, getSidesShape, getVisualShape, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, neighborUpdate, onBlockAction, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, prepare, randomTick, scheduledTickpublic static final BooleanProperty POWERED
protected static final VoxelShape NORTH_WALL_SHAPE
protected static final VoxelShape SOUTH_WALL_SHAPE
protected static final VoxelShape WEST_WALL_SHAPE
protected static final VoxelShape EAST_WALL_SHAPE
protected static final VoxelShape FLOOR_Z_AXIS_SHAPE
protected static final VoxelShape FLOOR_X_AXIS_SHAPE
protected static final VoxelShape CEILING_Z_AXIS_SHAPE
protected static final VoxelShape CEILING_X_AXIS_SHAPE
protected LeverBlock(AbstractBlock.Settings settings)
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getOutlineShape in class AbstractBlockpublic ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
onUse in class AbstractBlockpublic BlockState method_21846(BlockState blockState, World world, BlockPos blockPos)
private static void spawnParticles(BlockState state, IWorld world, BlockPos pos, float alpha)
@Environment(value=CLIENT) public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random random)
randomDisplayTick in class Blockpublic void onBlockRemoved(BlockState state, World world, BlockPos pos, BlockState newState, boolean notify)
onBlockRemoved in class AbstractBlockpublic int getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
getWeakRedstonePower in class AbstractBlockpublic int getStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
getStrongRedstonePower in class AbstractBlockpublic boolean emitsRedstonePower(BlockState state)
emitsRedstonePower in class AbstractBlockprivate void updateNeighbors(BlockState state, World world, BlockPos pos)
protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties in class Block