net.minecraft.block

public class CarvedPumpkinBlock

extends HorizontalFacingBlock

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.CarvedPumpkinBlock
net.minecraft.class_2276
net.minecraft.block.CarvedPumpkinBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<CarvedPumpkinBlock>
CODEC
field_46304
CODEC
public static final EnumProperty<Direction>
FACING
field_10748
FACING
private BlockPattern
snowGolemBase
field_10749
snowGolemDispenserPattern
private BlockPattern
snowGolemFull
field_10750
snowGolemPattern
private BlockPattern
ironGolemBase
field_10752
ironGolemDispenserPattern
private BlockPattern
ironGolemFull
field_10753
ironGolemPattern
private BlockPattern
copperGolemBase
field_61401
copperGolemDispenserPattern
private BlockPattern
copperGolemFull
field_61402
copperGolemPattern
private static final Predicate<BlockState>
PUMPKINS_PREDICATE
field_10751
IS_GOLEM_HEAD_PREDICATE

Constructor summary

ModifierConstructor
protected (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<? extends CarvedPumpkinBlock>
codec()
method_53969()
getCodec()
protected void
onPlace(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston)
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)
public boolean
canSpawnGolem(LevelReader level, BlockPos topPos)
method_9733(class_4538 arg0, class_2338 arg1)
canDispense(WorldView world, BlockPos pos)
private void
trySpawnGolem(Level level, BlockPos topPos)
method_9731(class_1937 arg0, class_2338 arg1)
trySpawnEntity(World world, BlockPos pos)
private Oxidizable$OxidationLevel
getWeatherStateFromPattern(BlockPattern$BlockPatternMatch copperGolemMatch)
method_72571(class_2700$class_2702 arg0)
getOxidationLevel(BlockPattern$Result patternResult)
private static void
spawnGolemInWorld(Level level, BlockPattern$BlockPatternMatch match, Entity golem, BlockPos spawnPos)
method_45455(class_1937 arg0, class_2700$class_2702 arg1, class_1297 arg2, class_2338 arg3)
spawnEntity(World world, BlockPattern$Result patternResult, Entity entity, BlockPos pos)
public static void
clearPatternBlocks(Level level, BlockPattern$BlockPatternMatch match)
method_45454(class_1937 arg0, class_2700$class_2702 arg1)
breakPatternBlocks(World world, BlockPattern$Result patternResult)
public static void
updatePatternBlocks(Level level, BlockPattern$BlockPatternMatch match)
method_45456(class_1937 arg0, class_2700$class_2702 arg1)
updatePatternBlocks(World world, BlockPattern$Result patternResult)
public BlockState
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
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 BlockPattern
getOrCreateSnowGolemBase()
method_9732()
getSnowGolemDispenserPattern()
private BlockPattern
getOrCreateSnowGolemFull()
method_9729()
getSnowGolemPattern()
private BlockPattern
getOrCreateIronGolemBase()
method_9727()
getIronGolemDispenserPattern()
private BlockPattern
getOrCreateIronGolemFull()
method_9730()
getIronGolemPattern()
private BlockPattern
getOrCreateCopperGolemBase()
method_72576()
getCopperGolemDispenserPattern()
private BlockPattern
getOrCreateCopperGolemFull()
method_72577()
getCopperGolemPattern()
public void
replaceCopperBlockWithChest(Level level, BlockPattern$BlockPatternMatch match)
method_72573(class_1937 arg0, class_2700$class_2702 arg1)
replaceCopperBlockWithChest(World world, BlockPattern$Result patternResult)
private static boolean
lambda$getOrCreateCopperGolemFull$0(BlockState arg0)
method_72574(class_2680 arg0)
method_72574(BlockState state)
private static boolean
lambda$getOrCreateCopperGolemBase$0(BlockState arg0)
method_72575(class_2680 arg0)
method_72575(BlockState state)
private static boolean
lambda$static$0(BlockState arg0)
method_9728(class_2680 arg0)
method_9728(BlockState state)
private static Oxidizable
lambda$getWeatherStateFromPattern$1(Block arg0)
method_72570(class_2248 arg0)
method_72570(Block block)
private static boolean
lambda$getWeatherStateFromPattern$0(Block arg0)
method_72572(class_2248 arg0)
method_72572(Block block)