net.minecraft.block

public class CrafterBlock

extends BlockWithEntity

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, BlockEntityProvider

net.minecraft.world.level.block.CrafterBlock
net.minecraft.class_8886
net.minecraft.block.CrafterBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<CrafterBlock>
CODEC
field_46798
CODEC
public static final BooleanProperty
CRAFTING
field_46799
CRAFTING
public static final BooleanProperty
TRIGGERED
field_46800
TRIGGERED
private static final EnumProperty<Orientation>
ORIENTATION
field_46801
ORIENTATION
private static final int
MAX_CRAFTING_TICKS
field_46802
field_46802
private static final int
CRAFTING_TICK_DELAY
field_47521
TRIGGER_DELAY
private static final RecipeCache
RECIPE_CACHE
field_46803
RECIPE_CACHE
private static final int
CRAFTER_ADVANCEMENT_DIAMETER
field_50015
field_50015

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
protected com.mojang.serialization.MapCodec<CrafterBlock>
codec()
method_53969()
getCodec()
protected boolean
hasAnalogOutputSignal(BlockState state)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState arg0)
protected int
getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction)
method_9572(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2350 arg3)
getComparatorOutput(BlockState arg0, World arg1, BlockPos arg2, Direction arg3)
protected void
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)
protected void
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)
public <T extends BlockEntity> BlockEntityTicker<T>
getTicker(Level level, BlockState blockState, BlockEntityType<T> type)
method_31645(class_1937 arg0, class_2680 arg1, class_2591<T> arg2)
getTicker(World arg0, BlockState arg1, BlockEntityType<T> arg2)
private void
setBlockEntityTriggered(BlockEntity blockEntity, boolean triggered)
method_54477(class_2586 arg0, boolean arg1)
setTriggered(BlockEntity blockEntity, boolean triggered)
public BlockEntity
newBlockEntity(BlockPos worldPosition, BlockState blockState)
method_10123(class_2338 arg0, class_2680 arg1)
createBlockEntity(BlockPos arg0, BlockState arg1)
public BlockState
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
public void
setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity by, ItemStack itemStack)
method_9567(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1309 arg3, class_1799 arg4)
onPlaced(World arg0, BlockPos arg1, BlockState arg2, LivingEntity arg3, ItemStack arg4)
protected void
affectNeighborsAfterRemoval(BlockState state, ServerLevel level, BlockPos pos, boolean movedByPiston)
method_66388(class_2680 arg0, class_3218 arg1, class_2338 arg2, boolean arg3)
onStateReplaced(BlockState arg0, ServerWorld arg1, BlockPos arg2, boolean arg3)
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 void
dispenseFrom(BlockState state, ServerLevel level, BlockPos pos)
method_54478(class_2680 arg0, class_3218 arg1, class_2338 arg2)
craft(BlockState state, ServerWorld world, BlockPos pos)
public static Optional<RecipeEntry<CraftingRecipe>>
getPotentialResults(ServerLevel level, CraftingInput input)
method_54475(class_3218 arg0, class_9694 arg1)
getCraftingRecipe(ServerWorld world, CraftingRecipeInput input)
private void
dispenseItem(ServerLevel level, BlockPos pos, CrafterBlockEntity blockEntity, ItemStack results, BlockState blockState, RecipeHolder<?> recipe)
method_54476(class_3218 arg0, class_2338 arg1, class_8887 arg2, class_1799 arg3, class_2680 arg4, class_8786<?> arg5)
transferOrSpawnStack(ServerWorld world, BlockPos pos, CrafterBlockEntity blockEntity, ItemStack stack, BlockState state, RecipeEntry<?> recipe)
protected BlockState
rotate(BlockState state, Rotation rotation)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
protected BlockState
mirror(BlockState state, Mirror mirror)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror 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)
private static void
lambda$dispenseFrom$0(ItemStack arg0)
method_54474(class_1799 arg0)
method_54474(ItemStack stack)