Package net.minecraft.world.level.block
Class GrindstoneBlock
- All Implemented Interfaces:
FeatureElement
,ItemLike
,IBlockExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
Block.BlockStatePairKey
Nested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final com.mojang.serialization.MapCodec
<GrindstoneBlock> private static final Component
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
static final VoxelShape
Fields inherited from class net.minecraft.world.level.block.FaceAttachedHorizontalDirectionalBlock
FACE
Fields inherited from class net.minecraft.world.level.block.HorizontalDirectionalBlock
FACING
Fields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPS
Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER
Fields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canSurvive
(BlockState pState, LevelReader pLevel, BlockPos pPos) com.mojang.serialization.MapCodec
<GrindstoneBlock> codec()
protected void
protected VoxelShape
getCollisionShape
(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) protected MenuProvider
getMenuProvider
(BlockState pState, Level pLevel, BlockPos pPos) protected RenderShape
getRenderShape
(BlockState pState) The type of render function called.protected VoxelShape
getShape
(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) private VoxelShape
getVoxelShape
(BlockState pState) protected boolean
isPathfindable
(BlockState pState, PathComputationType pPathComputationType) protected BlockState
mirror
(BlockState pState, Mirror pMirror) Returns the blockstate with the given mirror of the passed blockstate.protected BlockState
rotate
(BlockState pState, Rotation pRotation) Returns the blockstate with the given rotation from the passed blockstate.protected InteractionResult
useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) Methods inherited from class net.minecraft.world.level.block.FaceAttachedHorizontalDirectionalBlock
canAttach, getConnectedDirection, getStateForPlacement, updateShape
Methods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
Methods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isRandomlyTicking, isSignalSource, neighborChanged, onExplosionHit, onPlace, onProjectileHit, onRemove, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, simpleCodec, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, useItemOn, useShapeForLightOcclusion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockExtension
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, canSustainPlant, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getBubbleColumnDirection, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasDynamicLightEmission, hidesNeighborFace, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, shouldHideAdjacentFluidFace, supportsExternalFaceHiding
-
Field Details
-
CODEC
-
FLOOR_NORTH_SOUTH_LEFT_POST
-
FLOOR_NORTH_SOUTH_RIGHT_POST
-
FLOOR_NORTH_SOUTH_LEFT_PIVOT
-
FLOOR_NORTH_SOUTH_RIGHT_PIVOT
-
FLOOR_NORTH_SOUTH_LEFT_LEG
-
FLOOR_NORTH_SOUTH_RIGHT_LEG
-
FLOOR_NORTH_SOUTH_ALL_LEGS
-
FLOOR_NORTH_SOUTH_GRINDSTONE
-
FLOOR_EAST_WEST_LEFT_POST
-
FLOOR_EAST_WEST_RIGHT_POST
-
FLOOR_EAST_WEST_LEFT_PIVOT
-
FLOOR_EAST_WEST_RIGHT_PIVOT
-
FLOOR_EAST_WEST_LEFT_LEG
-
FLOOR_EAST_WEST_RIGHT_LEG
-
FLOOR_EAST_WEST_ALL_LEGS
-
FLOOR_EAST_WEST_GRINDSTONE
-
WALL_SOUTH_LEFT_POST
-
WALL_SOUTH_RIGHT_POST
-
WALL_SOUTH_LEFT_PIVOT
-
WALL_SOUTH_RIGHT_PIVOT
-
WALL_SOUTH_LEFT_LEG
-
WALL_SOUTH_RIGHT_LEG
-
WALL_SOUTH_ALL_LEGS
-
WALL_SOUTH_GRINDSTONE
-
WALL_NORTH_LEFT_POST
-
WALL_NORTH_RIGHT_POST
-
WALL_NORTH_LEFT_PIVOT
-
WALL_NORTH_RIGHT_PIVOT
-
WALL_NORTH_LEFT_LEG
-
WALL_NORTH_RIGHT_LEG
-
WALL_NORTH_ALL_LEGS
-
WALL_NORTH_GRINDSTONE
-
WALL_WEST_LEFT_POST
-
WALL_WEST_RIGHT_POST
-
WALL_WEST_LEFT_PIVOT
-
WALL_WEST_RIGHT_PIVOT
-
WALL_WEST_LEFT_LEG
-
WALL_WEST_RIGHT_LEG
-
WALL_WEST_ALL_LEGS
-
WALL_WEST_GRINDSTONE
-
WALL_EAST_LEFT_POST
-
WALL_EAST_RIGHT_POST
-
WALL_EAST_LEFT_PIVOT
-
WALL_EAST_RIGHT_PIVOT
-
WALL_EAST_LEFT_LEG
-
WALL_EAST_RIGHT_LEG
-
WALL_EAST_ALL_LEGS
-
WALL_EAST_GRINDSTONE
-
CEILING_NORTH_SOUTH_LEFT_POST
-
CEILING_NORTH_SOUTH_RIGHT_POST
-
CEILING_NORTH_SOUTH_LEFT_PIVOT
-
CEILING_NORTH_SOUTH_RIGHT_PIVOT
-
CEILING_NORTH_SOUTH_LEFT_LEG
-
CEILING_NORTH_SOUTH_RIGHT_LEG
-
CEILING_NORTH_SOUTH_ALL_LEGS
-
CEILING_NORTH_SOUTH_GRINDSTONE
-
CEILING_EAST_WEST_LEFT_POST
-
CEILING_EAST_WEST_RIGHT_POST
-
CEILING_EAST_WEST_LEFT_PIVOT
-
CEILING_EAST_WEST_RIGHT_PIVOT
-
CEILING_EAST_WEST_LEFT_LEG
-
CEILING_EAST_WEST_RIGHT_LEG
-
CEILING_EAST_WEST_ALL_LEGS
-
CEILING_EAST_WEST_GRINDSTONE
-
CONTAINER_TITLE
-
-
Constructor Details
-
GrindstoneBlock
-
-
Method Details
-
codec
- Specified by:
codec
in classFaceAttachedHorizontalDirectionalBlock
-
getRenderShape
The type of render function called. MODEL for mixed tesr and static model, MODELBLOCK_ANIMATED for TESR-only, LIQUID for vanilla liquids, INVISIBLE to skip all rendering- Overrides:
getRenderShape
in classBlockBehaviour
-
getVoxelShape
-
getCollisionShape
protected VoxelShape getCollisionShape(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) - Overrides:
getCollisionShape
in classBlockBehaviour
-
getShape
protected VoxelShape getShape(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) - Overrides:
getShape
in classBlockBehaviour
-
canSurvive
- Overrides:
canSurvive
in classFaceAttachedHorizontalDirectionalBlock
-
useWithoutItem
protected InteractionResult useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) - Overrides:
useWithoutItem
in classBlockBehaviour
-
getMenuProvider
- Overrides:
getMenuProvider
in classBlockBehaviour
-
rotate
Description copied from class:HorizontalDirectionalBlock
Returns the blockstate with the given rotation from the passed blockstate. If inapplicable, returns the passed blockstate.- Overrides:
rotate
in classHorizontalDirectionalBlock
-
mirror
Description copied from class:HorizontalDirectionalBlock
Returns the blockstate with the given mirror of the passed blockstate. If inapplicable, returns the passed blockstate.- Overrides:
mirror
in classHorizontalDirectionalBlock
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinition
in classBlock
-
isPathfindable
- Overrides:
isPathfindable
in classBlockBehaviour
-