net.minecraft.world.level.block

public class CocoaBlock

extends HorizontalDirectionalBlock implements BonemealableBlock

All mapped superinterfaces:

FeatureElement, ItemLike, BonemealableBlock

dhf
net.minecraft.world.level.block.CocoaBlock
net.minecraft.class_2282
net.minecraft.block.CocoaBlock
net.minecraft.src.C_1736_
net.minecraft.world.level.block.BlockCocoa

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<CocoaBlock>
a
CODEC
field_46315
CODEC
f_302917_
public static final int
b
MAX_AGE
field_31061
MAX_AGE
f_153068_
public static final IntegerProperty
c
AGE
field_10779
AGE
f_51736_
protected static final int
d
AGE_0_WIDTH
field_31062
field_31062
f_153069_
protected static final int
e
AGE_0_HEIGHT
field_31063
field_31063
f_153070_
protected static final int
f
AGE_0_HALFWIDTH
field_31064
field_31064
f_153071_
protected static final int
g
AGE_1_WIDTH
field_31065
field_31065
f_153072_
protected static final int
h
AGE_1_HEIGHT
field_31066
field_31066
f_153073_
protected static final int
i
AGE_1_HALFWIDTH
field_31067
field_31067
f_153074_
protected static final int
j
AGE_2_WIDTH
field_31068
field_31068
f_153075_
protected static final int
k
AGE_2_HEIGHT
field_31069
field_31069
f_153076_
protected static final int
l
AGE_2_HALFWIDTH
field_31070
field_31070
f_153077_
protected static final VoxelShape[]
m
EAST_AABB
field_10778
AGE_TO_EAST_SHAPE
f_51737_
protected static final VoxelShape[]
n
WEST_AABB
field_10776
AGE_TO_WEST_SHAPE
f_51738_
protected static final VoxelShape[]
o
NORTH_AABB
field_10777
AGE_TO_NORTH_SHAPE
f_51739_
protected static final VoxelShape[]
F
SOUTH_AABB
field_10780
AGE_TO_SOUTH_SHAPE
f_51740_

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<CocoaBlock>
a()
codec()
method_53969()
getCodec()
m_304657_()
protected boolean
d_(dtc arg0)
isRandomlyTicking(BlockState arg0)
method_9542(class_2680 arg0)
hasRandomTicks(BlockState arg0)
m_51695_(C_2064_ arg0)
protected void
b(dtc arg0, aqu arg1, jd arg2, ayw arg3)
randomTick(BlockState arg0, ServerLevel arg1, BlockPos arg2, RandomSource arg3)
method_9514(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
randomTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
m_213898_(C_2064_ p_221001_, C_12_ p_221002_, C_4675_ p_221003_, C_212974_ arg3)
protected boolean
a(dtc arg0, dcz arg1, jd arg2)
canSurvive(BlockState arg0, LevelReader arg1, BlockPos arg2)
method_9558(class_2680 arg0, class_4538 arg1, class_2338 arg2)
canPlaceAt(BlockState arg0, WorldView arg1, BlockPos arg2)
m_7898_(C_2064_ p_51768_, C_1599_ p_51769_, C_4675_ arg2)
protected VoxelShape
a(dtc arg0, dcc arg1, jd arg2, exh 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)
m_5940_(C_2064_ p_51788_, C_1559_ p_51789_, C_4675_ p_51790_, C_3051_ arg3)
public BlockState
a(cyd arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
m_5573_(C_1445_ arg0)
protected BlockState
a(dtc arg0, ji arg1, dtc arg2, dcx arg3, jd arg4, jd arg5)
updateShape(BlockState arg0, Direction arg1, BlockState arg2, LevelAccessor arg3, BlockPos arg4, BlockPos arg5)
method_9559(class_2680 arg0, class_2350 arg1, class_2680 arg2, class_1936 arg3, class_2338 arg4, class_2338 arg5)
getStateForNeighborUpdate(BlockState arg0, Direction arg1, BlockState arg2, WorldAccess arg3, BlockPos arg4, BlockPos arg5)
m_7417_(C_2064_ p_51772_, C_4687_ p_51773_, C_2064_ p_51774_, C_1598_ p_51775_, C_4675_ p_51776_, C_4675_ arg5)
public boolean
b(dcz arg0, jd arg1, dtc arg2)
isValidBonemealTarget(LevelReader arg0, BlockPos arg1, BlockState arg2)
method_9651(class_4538 arg0, class_2338 arg1, class_2680 arg2)
isFertilizable(WorldView arg0, BlockPos arg1, BlockState arg2)
m_7370_(C_1599_ p_51753_, C_4675_ p_51754_, C_2064_ arg2)
public boolean
a(dcw arg0, ayw arg1, jd arg2, dtc arg3)
isBonemealSuccess(Level arg0, RandomSource arg1, BlockPos arg2, BlockState arg3)
method_9650(class_1937 arg0, class_5819 arg1, class_2338 arg2, class_2680 arg3)
canGrow(World arg0, Random arg1, BlockPos arg2, BlockState arg3)
m_214167_(C_1596_ p_220996_, C_212974_ p_220997_, C_4675_ p_220998_, C_2064_ arg3)
public void
a(aqu arg0, ayw arg1, jd arg2, dtc arg3)
performBonemeal(ServerLevel arg0, RandomSource arg1, BlockPos arg2, BlockState arg3)
method_9652(class_3218 arg0, class_5819 arg1, class_2338 arg2, class_2680 arg3)
grow(ServerWorld arg0, Random arg1, BlockPos arg2, BlockState arg3)
m_214148_(C_12_ p_220991_, C_212974_ p_220992_, C_4675_ p_220993_, C_2064_ arg3)
protected void
a(dtd$a<dfy, dtc> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
m_7926_(C_2065_$C_2066_<C_1706_, C_2064_> arg0)
protected boolean
a(dtc arg0, ept arg1)
isPathfindable(BlockState arg0, PathComputationType arg1)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
m_7357_(C_2064_ p_51765_, C_2754_ arg1)