net.minecraft.world.level.block

public class ComposterBlock

extends Block implements WorldlyContainerHolder

All mapped superinterfaces:

FeatureElement, ItemLike, WorldlyContainerHolder

dly
net.minecraft.world.level.block.ComposterBlock
net.minecraft.class_3962
net.minecraft.block.ComposterBlock
net.minecraft.world.level.block.BlockComposter

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<ComposterBlock>
a
CODEC
field_46320
CODEC
public static final int
b
READY
field_31071
NUM_LEVELS
public static final int
c
MIN_LEVEL
field_31072
MIN_LEVEL
public static final int
d
MAX_LEVEL
field_31073
MAX_LEVEL
public static final IntegerProperty
e
LEVEL
field_17565
LEVEL
public static final it.unimi.dsi.fastutil.objects.Object2FloatMap<ItemLike>
f
COMPOSTABLES
field_17566
ITEM_TO_LEVEL_INCREASE_CHANCE
private static final int
g
AABB_SIDE_THICKNESS
field_31074
field_31074
private static final VoxelShape
h
OUTER_SHAPE
field_17567
RAYCAST_SHAPE
private static final VoxelShape[]
i
SHAPES
field_17568
LEVEL_TO_COLLISION_SHAPE

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<ComposterBlock>
a()
codec()
method_53969()
getCodec()
public static void
b()
bootStrap()
method_17758()
registerDefaultCompostableItems()
private static void
a(float arg0, dhh arg1)
add(float arg0, ItemLike arg1)
method_17753(float arg0, class_1935 arg1)
registerCompostableItem(float levelIncreaseChance, ItemConvertible item)
public static void
a(dhi arg0, jh arg1, boolean arg2)
handleFill(Level arg0, BlockPos arg1, boolean arg2)
method_18027(class_1937 arg0, class_2338 arg1, boolean arg2)
playEffects(World world, BlockPos pos, boolean fill)
protected VoxelShape
a(dxv arg0, dgn arg1, jh arg2, fcd arg3)
getShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected VoxelShape
a(dxv arg0, dgn arg1, jh arg2)
getInteractionShape(BlockState arg0, BlockGetter arg1, BlockPos arg2)
method_9584(class_2680 arg0, class_1922 arg1, class_2338 arg2)
getRaycastShape(BlockState arg0, BlockView arg1, BlockPos arg2)
protected VoxelShape
b(dxv arg0, dgn arg1, jh arg2, fcd arg3)
getCollisionShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_9549(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getCollisionShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected void
b(dxv arg0, dhi arg1, jh arg2, dxv arg3, boolean arg4)
onPlace(BlockState arg0, Level arg1, BlockPos arg2, BlockState arg3, boolean arg4)
method_9615(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
onBlockAdded(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
protected InteractionResult
a(cxp arg0, dxv arg1, dhi arg2, jh arg3, cpx arg4, bti arg5, fbu arg6)
useItemOn(ItemStack arg0, BlockState arg1, Level arg2, BlockPos arg3, Player arg4, InteractionHand arg5, BlockHitResult arg6)
method_55765(class_1799 arg0, class_2680 arg1, class_1937 arg2, class_2338 arg3, class_1657 arg4, class_1268 arg5, class_3965 arg6)
onUseWithItem(ItemStack arg0, BlockState arg1, World arg2, BlockPos arg3, PlayerEntity arg4, Hand arg5, BlockHitResult arg6)
protected InteractionResult
a(dxv arg0, dhi arg1, jh arg2, cpx arg3, fbu arg4)
useWithoutItem(BlockState arg0, Level arg1, BlockPos arg2, Player arg3, BlockHitResult arg4)
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)
public static BlockState
a(bvk arg0, dxv arg1, ash arg2, cxp arg3, jh arg4)
insertItem(Entity arg0, BlockState arg1, ServerLevel arg2, ItemStack arg3, BlockPos arg4)
method_26373(class_1297 arg0, class_2680 arg1, class_3218 arg2, class_1799 arg3, class_2338 arg4)
compost(Entity user, BlockState state, ServerWorld world, ItemStack stack, BlockPos pos)
public static BlockState
a(bvk arg0, dxv arg1, dhi arg2, jh arg3)
extractProduce(Entity arg0, BlockState arg1, Level arg2, BlockPos arg3)
method_26374(class_1297 arg0, class_2680 arg1, class_1937 arg2, class_2338 arg3)
emptyFullComposter(Entity user, BlockState state, World world, BlockPos pos)
static BlockState
a(bvk arg0, dxv arg1, dhj arg2, jh arg3)
empty(Entity arg0, BlockState arg1, LevelAccessor arg2, BlockPos arg3)
method_17759(class_1297 arg0, class_2680 arg1, class_1936 arg2, class_2338 arg3)
emptyComposter(Entity user, BlockState state, WorldAccess world, BlockPos pos)
static BlockState
a(bvk arg0, dxv arg1, dhj arg2, jh arg3, cxp arg4)
addItem(Entity arg0, BlockState arg1, LevelAccessor arg2, BlockPos arg3, ItemStack arg4)
method_17756(class_1297 arg0, class_2680 arg1, class_1936 arg2, class_2338 arg3, class_1799 arg4)
addToComposter(Entity user, BlockState state, WorldAccess world, BlockPos pos, ItemStack stack)
protected void
a(dxv arg0, ash arg1, jh arg2, bam arg3)
tick(BlockState arg0, ServerLevel arg1, BlockPos arg2, RandomSource arg3)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
protected boolean
c_(dxv arg0)
hasAnalogOutputSignal(BlockState arg0)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState arg0)
protected int
a(dxv arg0, dhi arg1, jh arg2)
getAnalogOutputSignal(BlockState arg0, Level arg1, BlockPos arg2)
method_9572(class_2680 arg0, class_1937 arg1, class_2338 arg2)
getComparatorOutput(BlockState arg0, World arg1, BlockPos arg2)
protected void
a(dxw$a<dkm, dxv> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected boolean
a(dxv arg0, eum arg1)
isPathfindable(BlockState arg0, PathComputationType arg1)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
public WorldlyContainer
a(dxv arg0, dhj arg1, jh arg2)
getContainer(BlockState arg0, LevelAccessor arg1, BlockPos arg2)
method_17680(class_2680 arg0, class_1936 arg1, class_2338 arg2)
getInventory(BlockState arg0, WorldAccess arg1, BlockPos arg2)