net.minecraft.block

public class PitcherCropBlock

extends TallPlantBlock implements Fertilizable

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Fertilizable

net.minecraft.world.level.block.PitcherCropBlock
net.minecraft.world.level.block.PitcherCropBlock
net.minecraft.class_8237
net.minecraft.block.PitcherCropBlock

Field summary

Modifier and TypeField
public static final int
MAX_AGE
MAX_AGE
field_43240
field_43240
public static final IntProperty
AGE
AGE
field_43239
AGE
public static final EnumProperty<DoubleBlockHalf>
HALF
HALF
field_55784
HALF
private static final int
DOUBLE_PLANT_AGE_INTERSECTION
DOUBLE_PLANT_AGE_INTERSECTION
field_43241
field_43241
private static final int
BONEMEAL_INCREASE
BONEMEAL_INCREASE
field_43391
field_43391
private static final VoxelShape
SHAPE_BULB
SHAPE_BULB
field_43246
AGE_0_SHAPE
private static final VoxelShape
SHAPE_CROP
SHAPE_CROP
field_43247
LOWER_COLLISION_SHAPE
private final Function<BlockState, VoxelShape>
shapes
shapes
field_55783
shapeFunction

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
private Function<BlockState, VoxelShape>
makeShapes()
makeShapes()
method_66459()
createShapeFunction()
public BlockState
getStateForPlacement(BlockPlaceContext context)
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
public VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
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)
public VoxelShape
getCollisionShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
getCollisionShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9549(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getCollisionShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
public BlockState
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
method_9559(class_2680 arg0, class_4538 arg1, class_10225 arg2, class_2338 arg3, class_2350 arg4, class_2338 arg5, class_2680 arg6, class_5819 arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
public boolean
canSurvive(BlockState state, LevelReader level, BlockPos pos)
canSurvive(BlockState state, LevelReader level, BlockPos pos)
method_9558(class_2680 arg0, class_4538 arg1, class_2338 arg2)
canPlaceAt(BlockState arg0, WorldView arg1, BlockPos arg2)
protected boolean
mayPlaceOn(BlockState state, BlockGetter level, BlockPos pos)
mayPlaceOn(BlockState state, BlockGetter level, BlockPos pos)
method_9695(class_2680 arg0, class_1922 arg1, class_2338 arg2)
canPlantOnTop(BlockState arg0, BlockView arg1, BlockPos arg2)
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)
public void
entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier, boolean isPrecise)
entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier, boolean isPrecise)
method_9548(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1297 arg3, class_10774 arg4, boolean arg5)
onEntityCollision(BlockState arg0, World arg1, BlockPos arg2, Entity arg3, EntityCollisionHandler arg4, boolean arg5)
public boolean
canBeReplaced(BlockState state, BlockPlaceContext context)
canBeReplaced(BlockState state, BlockPlaceContext context)
method_9616(class_2680 arg0, class_1750 arg1)
canReplace(BlockState arg0, ItemPlacementContext arg1)
public void
setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity by, ItemStack itemStack)
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)
public boolean
isRandomlyTicking(BlockState state)
isRandomlyTicking(BlockState state)
method_9542(class_2680 arg0)
hasRandomTicks(BlockState arg0)
public void
randomTick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
randomTick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
method_9514(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
randomTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
private void
grow(ServerLevel level, BlockState lowerState, BlockPos lowerPos, int increase)
grow(ServerLevel level, BlockState lowerState, BlockPos lowerPos, int increase)
method_49819(class_3218 arg0, class_2680 arg1, class_2338 arg2, int arg3)
tryGrow(ServerWorld world, BlockState state, BlockPos pos, int amount)
private static boolean
canGrowInto(LevelReader level, BlockPos pos)
canGrowInto(LevelReader level, BlockPos pos)
method_49820(class_4538 arg0, class_2338 arg1)
canGrowAt(WorldView world, BlockPos pos)
private static boolean
sufficientLight(LevelReader level, BlockPos pos)
sufficientLight(LevelReader level, BlockPos pos)
method_52267(class_4538 arg0, class_2338 arg1)
canPlaceAt(WorldView world, BlockPos pos)
private static boolean
isLower(BlockState state)
isLower(BlockState state)
method_51171(class_2680 arg0)
isLowerHalf(BlockState state)
private static boolean
isDouble(int age)
isDouble(int age)
method_52575(int arg0)
isDoubleTallAtAge(int age)
private boolean
canGrow(LevelReader level, BlockPos lowerPos, BlockState lowerState, int newAge)
canGrow(LevelReader level, BlockPos lowerPos, BlockState lowerState, int newAge)
method_52266(class_4538 arg0, class_2338 arg1, class_2680 arg2, int arg3)
canGrow(WorldView world, BlockPos pos, BlockState state, int age)
private boolean
isMaxAge(BlockState state)
isMaxAge(BlockState state)
method_49821(class_2680 arg0)
isFullyGrown(BlockState state)
private PitcherCropBlock$LowerHalfContext
getLowerHalf(LevelReader level, BlockPos pos, BlockState state)
getLowerHalf(LevelReader level, BlockPos pos, BlockState state)
method_52268(class_4538 arg0, class_2338 arg1, class_2680 arg2)
getLowerHalfContext(WorldView world, BlockPos pos, BlockState state)
public boolean
isValidBonemealTarget(LevelReader level, BlockPos pos, BlockState state, BonemealSource source)
isValidBonemealTarget(LevelReader level, BlockPos pos, BlockState state, BonemealSource source)
method_9651(class_4538 arg0, class_2338 arg1, class_2680 arg2, class_1_1322 arg3)
isFertilizable(WorldView arg0, BlockPos arg1, BlockState arg2, FertilizationCause arg3)
public boolean
isBonemealSuccess(Level level, RandomSource random, BlockPos pos, BlockState state, BonemealSource source)
isBonemealSuccess(Level level, RandomSource random, BlockPos pos, BlockState state, BonemealSource source)
method_9650(class_1937 arg0, class_5819 arg1, class_2338 arg2, class_2680 arg3, class_1_1322 arg4)
canGrow(World arg0, Random arg1, BlockPos arg2, BlockState arg3, FertilizationCause arg4)
public void
performBonemeal(ServerLevel level, RandomSource random, BlockPos pos, BlockState state, BonemealSource source)
performBonemeal(ServerLevel level, RandomSource random, BlockPos pos, BlockState state, BonemealSource source)
method_9652(class_3218 arg0, class_5819 arg1, class_2338 arg2, class_2680 arg3, class_1_1322 arg4)
grow(ServerWorld arg0, Random arg1, BlockPos arg2, BlockState arg3, FertilizationCause arg4)