net.minecraft.block

public class AnvilBlock

extends FallingBlock

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Falling

net.minecraft.world.level.block.AnvilBlock
net.minecraft.class_2199
net.minecraft.block.AnvilBlock

Field summary

Modifier and TypeField
public static final EnumProperty<Direction>
FACING
field_9883
FACING
private static final Map<Direction$Axis, VoxelShape>
SHAPES
field_55730
SHAPES_BY_AXIS
private static final Text
CONTAINER_TITLE
field_17349
TITLE
private static final float
FALL_DAMAGE_PER_DISTANCE
field_30993
FALLING_BLOCK_ENTITY_DAMAGE_MULTIPLIER
private static final int
FALL_DAMAGE_MAX
field_30994
FALLING_BLOCK_ENTITY_MAX_DAMAGE

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public BlockState
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
protected ActionResult
useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult)
method_55766(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3, class_3965 arg4)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
protected NamedScreenHandlerFactory
getMenuProvider(BlockState state, Level level, BlockPos pos)
method_17454(class_2680 arg0, class_1937 arg1, class_2338 arg2)
createScreenHandlerFactory(BlockState arg0, World arg1, BlockPos arg2)
protected VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected void
falling(FallingBlockEntity entity)
method_10132(class_1540 arg0)
configureFallingBlockEntity(FallingBlockEntity arg0)
public void
onLand(Level level, BlockPos pos, BlockState state, BlockState replacedBlock, FallingBlockEntity entity)
method_10127(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_2680 arg3, class_1540 arg4)
onLanding(World arg0, BlockPos arg1, BlockState arg2, BlockState arg3, FallingBlockEntity arg4)
public void
onBrokenAfterFall(Level level, BlockPos pos, FallingBlockEntity entity)
method_10129(class_1937 arg0, class_2338 arg1, class_1540 arg2)
onDestroyedOnLanding(World arg0, BlockPos arg1, FallingBlockEntity arg2)
public DamageSource
getFallDamageSource(Entity entity)
method_32898(class_1297 arg0)
getDamageSource(Entity arg0)
public static BlockState
damage(BlockState blockState)
method_9346(class_2680 arg0)
getLandingState(BlockState fallingState)
protected BlockState
rotate(BlockState state, Rotation rotation)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected boolean
isPathfindable(BlockState state, PathComputationType type)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
public int
getDustColor(BlockState blockState, BlockGetter level, BlockPos pos)
method_10130(class_2680 arg0, class_1922 arg1, class_2338 arg2)
getColor(BlockState arg0, BlockView arg1, BlockPos arg2)
private static ScreenHandler
lambda$getMenuProvider$0(Level arg0, BlockPos arg1, int arg2, Inventory arg3, Player arg4)
method_17453(class_1937 arg0, class_2338 arg1, int arg2, class_1661 arg3, class_1657 arg4)
method_17453(World arg0, BlockPos arg1, int syncId, PlayerInventory inventory, PlayerEntity player)