Package net.minecraft.block
Class GrindstoneBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.HorizontalFacingBlock
net.minecraft.block.WallMountedBlock
net.minecraft.block.GrindstoneBlock
- All Implemented Interfaces:
ItemConvertible
public class GrindstoneBlock extends WallMountedBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
Fields inherited from class net.minecraft.block.WallMountedBlock
FACEFields inherited from class net.minecraft.block.HorizontalFacingBlock
FACINGFields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors Modifier Constructor Description protectedGrindstoneBlock(AbstractBlock.Settings settings) -
Method Summary
Methods inherited from class net.minecraft.block.WallMountedBlock
canPlaceAt, getDirection, getPlacementState, getStateForNeighborUpdateMethods inherited from class net.minecraft.block.Block
addStacksForDisplay, 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, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canReplace, emitsRedstonePower, getAmbientOcclusionLightLevel, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTick, scheduledTick
-
Field Details
-
WEST_FLOOR_LEG
-
EAST_FLOOR_LEG
-
WEST_FLOOR_HINGE
-
EAST_FLOOR_HINGE
-
WEST_FLOOR_SIDE
-
EAST_FLOOR_SIDE
-
Z_FLOOR_SIDES
-
Z_FLOOR_SHAPE
-
NORTH_FLOOR_LEG
-
SOUTH_FLOOR_LEG
-
NORTH_FLOOR_HINGE
-
SOUTH_FLOOR_HINGE
-
NORTH_FLOOR_SIDE
-
SOUTH_FLOOR_SIDE
-
X_FLOOR_SIDES
-
X_FLOOR_SHAPE
-
SOUTH_WALL_WEST_LEG
-
SOUTH_WALL_EAST_LEG
-
SOUTH_WALL_WEST_HINGE
-
SOUTH_WALL_EAST_HINGE
-
SOUTH_WALL_WEST_SIDE
-
SOUTH_WALL_EAST_SIDE
-
SOUTH_WALL_SIDES
-
SOUTH_WALL_SHAPE
-
NORTH_WALL_WEST_LEG
-
NORTH_WALL_EAST_LEG
-
NORTH_WALL_WEST_HINGE
-
NORTH_WALL_EAST_HINGE
-
NORTH_WALL_WEST_SIDE
-
NORTH_WALL_EAST_SIDE
-
NORTH_WALL_SIDES
-
NORTH_WALL_SHAPE
-
WEST_WALL_NORTH_LEG
-
WEST_WALL_SOUTH_LEG
-
WEST_WALL_NORTH_HINGE
-
WEST_WALL_SOUTH_HINGE
-
WEST_WALL_NORTH_SIDE
-
WEST_WALL_SOUTH_SIDE
-
WEST_WALL_SIDES
-
WEST_WALL_SHAPE
-
EAST_WALL_NORTH_LEG
-
EAST_WALL_SOUTH_LEG
-
EAST_WALL_NORTH_HINGE
-
EAST_WALL_SOUTH_HINGE
-
EAST_WALL_NORTH_SIDE
-
EAST_WALL_SOUTH_SIDE
-
EAST_WALL_SIDES
-
EAST_WALL_SHAPE
-
WEST_CEILING_LEG
-
EAST_CEILING_LEG
-
WEST_CEILING_HINGE
-
EAST_CEILING_HINGE
-
WEST_CEILING_SIDE
-
EAST_CEILING_SIDE
-
Z_CEILING_SIDES
-
Z_CEILING_SHAPE
-
NORTH_CEILING_LEG
-
SOUTH_CEILING_LEG
-
NORTH_CEILING_HINGE
-
SOUTH_CEILING_HINGE
-
NORTH_CEILING_SIDE
-
SOUTH_CEILING_SIDE
-
X_CEILING_SIDES
-
X_CEILING_SHAPE
-
TITLE
-
-
Constructor Details
-
GrindstoneBlock
-
-
Method Details
-
getRenderType
- Overrides:
getRenderTypein classAbstractBlock
-
getShape
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getCollisionShapein classAbstractBlock
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getOutlineShapein classAbstractBlock
-
canPlaceAt
- Overrides:
canPlaceAtin classWallMountedBlock
-
onUse
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player. This, by default, is bound to using the right mouse button.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.
- Overrides:
onUsein classAbstractBlock- Returns:
- an action result that specifies if using the block was successful.
-
createScreenHandlerFactory
public NamedScreenHandlerFactory createScreenHandlerFactory(BlockState state, World world, BlockPos pos)- Overrides:
createScreenHandlerFactoryin classAbstractBlock
-
rotate
Applies a block rotation to a block state.By default, this returns the provided block state.
- Overrides:
rotatein classHorizontalFacingBlock- Returns:
- the rotated block state
-
mirror
- Overrides:
mirrorin classHorizontalFacingBlock
-
appendProperties
- Overrides:
appendPropertiesin classBlock
-