public class GrindstoneBlock extends WallMountedBlock
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>FACEFACINGLOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Modifier | Constructor and Description |
|---|---|
protected |
GrindstoneBlock(AbstractBlock.Settings settings) |
canPlaceAt, getDirection, getPlacementState, getStateForNeighborUpdateaddStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, 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, is, isFaceFullSquare, isIn, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringcalcBlockBreakingDelta, canBucketPlace, canReplace, emitsRedstonePower, getAmbientOcclusionLightLevel, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTick, scheduledTickpublic static final VoxelShape WEST_FLOOR_LEG
public static final VoxelShape EAST_FLOOR_LEG
public static final VoxelShape WEST_FLOOR_HINGE
public static final VoxelShape EAST_FLOOR_HINGE
public static final VoxelShape WEST_FLOOR_SIDE
public static final VoxelShape EAST_FLOOR_SIDE
public static final VoxelShape Z_FLOOR_SIDES
public static final VoxelShape Z_FLOOR_SHAPE
public static final VoxelShape NORTH_FLOOR_LEG
public static final VoxelShape SOUTH_FLOOR_LEG
public static final VoxelShape NORTH_FLOOR_HINGE
public static final VoxelShape SOUTH_FLOOR_HINGE
public static final VoxelShape NORTH_FLOOR_SIDE
public static final VoxelShape SOUTH_FLOOR_SIDE
public static final VoxelShape X_FLOOR_SIDES
public static final VoxelShape X_FLOOR_SHAPE
public static final VoxelShape SOUTH_WALL_WEST_LEG
public static final VoxelShape SOUTH_WALL_EAST_LEG
public static final VoxelShape SOUTH_WALL_WEST_HINGE
public static final VoxelShape SOUTH_WALL_EAST_HINGE
public static final VoxelShape SOUTH_WALL_WEST_SIDE
public static final VoxelShape SOUTH_WALL_EAST_SIDE
public static final VoxelShape SOUTH_WALL_SIDES
public static final VoxelShape SOUTH_WALL_SHAPE
public static final VoxelShape NORTH_WALL_WEST_LEG
public static final VoxelShape NORTH_WALL_EAST_LEG
public static final VoxelShape NORTH_WALL_WEST_HINGE
public static final VoxelShape NORTH_WALL_EAST_HINGE
public static final VoxelShape NORTH_WALL_WEST_SIDE
public static final VoxelShape NORTH_WALL_EAST_SIDE
public static final VoxelShape NORTH_WALL_SIDES
public static final VoxelShape NORTH_WALL_SHAPE
public static final VoxelShape WEST_WALL_NORTH_LEG
public static final VoxelShape WEST_WALL_SOUTH_LEG
public static final VoxelShape WEST_WALL_NORTH_HINGE
public static final VoxelShape WEST_WALL_SOUTH_HINGE
public static final VoxelShape WEST_WALL_NORTH_SIDE
public static final VoxelShape WEST_WALL_SOUTH_SIDE
public static final VoxelShape WEST_WALL_SIDES
public static final VoxelShape WEST_WALL_SHAPE
public static final VoxelShape EAST_WALL_NORTH_LEG
public static final VoxelShape EAST_WALL_SOUTH_LEG
public static final VoxelShape EAST_WALL_NORTH_HINGE
public static final VoxelShape EAST_WALL_SOUTH_HINGE
public static final VoxelShape EAST_WALL_NORTH_SIDE
public static final VoxelShape EAST_WALL_SOUTH_SIDE
public static final VoxelShape EAST_WALL_SIDES
public static final VoxelShape EAST_WALL_SHAPE
public static final VoxelShape WEST_CEILING_LEG
public static final VoxelShape EAST_CEILING_LEG
public static final VoxelShape WEST_CEILING_HINGE
public static final VoxelShape EAST_CEILING_HINGE
public static final VoxelShape WEST_CEILING_SIDE
public static final VoxelShape EAST_CEILING_SIDE
public static final VoxelShape Z_CEILING_SIDES
public static final VoxelShape Z_CEILING_SHAPE
public static final VoxelShape NORTH_CEILING_LEG
public static final VoxelShape SOUTH_CEILING_LEG
public static final VoxelShape NORTH_CEILING_HINGE
public static final VoxelShape SOUTH_CEILING_HINGE
public static final VoxelShape NORTH_CEILING_SIDE
public static final VoxelShape SOUTH_CEILING_SIDE
public static final VoxelShape X_CEILING_SIDES
public static final VoxelShape X_CEILING_SHAPE
private static final Text TITLE
protected GrindstoneBlock(AbstractBlock.Settings settings)
public BlockRenderType getRenderType(BlockState state)
getRenderType in class AbstractBlockprivate VoxelShape getShape(BlockState state)
public VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getCollisionShape in class AbstractBlockpublic VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getOutlineShape in class AbstractBlockpublic boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
canPlaceAt in class WallMountedBlockpublic ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
This method is called on both the logical client and logical server, so take caution when overriding this method.
The logical side can be checked using world.isClient().
If the action result is successful on a logical client, then the action will be sent to the logical server for processing.
onUse in class AbstractBlockpublic NamedScreenHandlerFactory createScreenHandlerFactory(BlockState state, World world, BlockPos pos)
createScreenHandlerFactory in class AbstractBlockpublic BlockState rotate(BlockState state, BlockRotation rotation)
By default, this returns the provided block state.
rotate in class HorizontalFacingBlockpublic BlockState mirror(BlockState state, BlockMirror mirror)
mirror in class HorizontalFacingBlockprotected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties in class Blockpublic boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
canPathfindThrough in class AbstractBlock