net.minecraft.block

public class TestBlock

extends BlockWithEntity implements OperatorBlock

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, BlockEntityProvider, OperatorBlock

net.minecraft.world.level.block.TestBlock
net.minecraft.world.level.block.TestBlock
net.minecraft.class_10631
net.minecraft.block.TestBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<TestBlock>
CODEC
CODEC
field_55989
CODEC
public static final EnumProperty<TestBlockMode>
MODE
MODE
field_55990
MODE

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public BlockEntity
newBlockEntity(BlockPos worldPosition, BlockState blockState)
newBlockEntity(BlockPos worldPosition, BlockState blockState)
method_10123(class_2338 arg0, class_2680 arg1)
createBlockEntity(BlockPos arg0, BlockState arg1)
public BlockState
getStateForPlacement(BlockPlaceContext context)
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected ActionResult
useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult)
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 void
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
protected void
neighborChanged(BlockState state, Level level, BlockPos pos, Block block, Orientation orientation, boolean movedByPiston)
neighborChanged(BlockState state, Level level, BlockPos pos, Block block, Orientation orientation, boolean movedByPiston)
method_9612(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2248 arg3, class_9904 arg4, boolean arg5)
neighborUpdate(BlockState arg0, World arg1, BlockPos arg2, Block arg3, WireOrientation arg4, boolean arg5)
private static TestBlockEntity
getServerTestBlockEntity(Level level, BlockPos pos)
getServerTestBlockEntity(Level level, BlockPos pos)
method_66712(class_1937 arg0, class_2338 arg1)
getBlockEntityOnServer(World world, BlockPos pos)
public int
ownSignal(BlockState state, BlockGetter level, BlockPos pos)
ownSignal(BlockState state, BlockGetter level, BlockPos pos)
method_1_5240(class_2680 arg0, class_1922 arg1, class_2338 arg2)
getWeakRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2)
protected ItemStack
getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData)
getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData)
method_9574(class_4538 arg0, class_2338 arg1, class_2680 arg2, boolean arg3)
getPickStack(WorldView arg0, BlockPos arg1, BlockState arg2, boolean arg3)
public static ItemStack
setModeOnStack(ItemStack itemStack, TestBlockMode mode)
setModeOnStack(ItemStack itemStack, TestBlockMode mode)
method_66711(class_1799 arg0, class_10641 arg1)
applyBlockStateToStack(ItemStack stack, TestBlockMode mode)
protected com.mojang.serialization.MapCodec<TestBlock>
codec()
codec()
method_53969()
getCodec()