Package net.minecraft.block
Class CarvedPumpkinBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.HorizontalFacingBlock
net.minecraft.block.CarvedPumpkinBlock
- All Implemented Interfaces:
- ItemConvertible,- ToggleableFeature
- Mappings:
- Namespace - Name - named - net/minecraft/block/CarvedPumpkinBlock- intermediary - net/minecraft/class_2276- official - dki
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.block.AbstractBlockAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<CarvedPumpkinBlock> static final EnumProperty<Direction> private @Nullable BlockPatternprivate @Nullable BlockPatternprivate static final Predicate<BlockState> private @Nullable BlockPatternprivate @Nullable BlockPatternFields inherited from class net.minecraft.block.Blockfield_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_REDSTONE_WIRE_STATE_REPLACEMENT, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlockcollidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureFEATURE_ENABLED_REGISTRY_KEYS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.static voidbreakPatternBlocks(World world, BlockPattern.Result patternResult) booleancanDispense(WorldView world, BlockPos pos) com.mojang.serialization.MapCodec<? extends CarvedPumpkinBlock> getCodec()private BlockPatternprivate BlockPatternprivate BlockPatternprivate BlockPatternprotected voidonBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.private static voidspawnEntity(World world, BlockPattern.Result patternResult, Entity entity, BlockPos pos) private voidtrySpawnEntity(World world, BlockPos pos) static voidupdatePatternBlocks(World world, BlockPattern.Result patternResult) Methods inherited from class net.minecraft.block.HorizontalFacingBlockmirror, rotateMethods inherited from class net.minecraft.block.BlockafterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlockcalcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getPickStack, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStateForNeighborUpdate, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isShapeFullCube, isSideInvisible, isTransparent, neighborUpdate, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, prepare, randomTick, scheduledTickMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureisEnabled
- 
Field Details- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/block/CarvedPumpkinBlock;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_46304- Lnet/minecraft/class_2276;field_46304:Lcom/mojang/serialization/MapCodec;- official - a- Ldki;a:Lcom/mojang/serialization/MapCodec;
 
- 
FACING- Mappings:
- Namespace - Name - Mixin selector - named - FACING- Lnet/minecraft/block/CarvedPumpkinBlock;FACING:Lnet/minecraft/state/property/EnumProperty;- intermediary - field_10748- Lnet/minecraft/class_2276;field_10748:Lnet/minecraft/class_2754;- official - b- Ldki;b:Ldxv;
 
- 
IS_GOLEM_HEAD_PREDICATE- Mappings:
- Namespace - Name - Mixin selector - named - IS_GOLEM_HEAD_PREDICATE- Lnet/minecraft/block/CarvedPumpkinBlock;IS_GOLEM_HEAD_PREDICATE:Ljava/util/function/Predicate;- intermediary - field_10751- Lnet/minecraft/class_2276;field_10751:Ljava/util/function/Predicate;- official - g- Ldki;g:Ljava/util/function/Predicate;
 
- 
snowGolemDispenserPattern- Mappings:
- Namespace - Name - Mixin selector - named - snowGolemDispenserPattern- Lnet/minecraft/block/CarvedPumpkinBlock;snowGolemDispenserPattern:Lnet/minecraft/block/pattern/BlockPattern;- intermediary - field_10749- Lnet/minecraft/class_2276;field_10749:Lnet/minecraft/class_2700;- official - c- Ldki;c:Ldxd;
 
- 
snowGolemPattern- Mappings:
- Namespace - Name - Mixin selector - named - snowGolemPattern- Lnet/minecraft/block/CarvedPumpkinBlock;snowGolemPattern:Lnet/minecraft/block/pattern/BlockPattern;- intermediary - field_10750- Lnet/minecraft/class_2276;field_10750:Lnet/minecraft/class_2700;- official - d- Ldki;d:Ldxd;
 
- 
ironGolemDispenserPattern- Mappings:
- Namespace - Name - Mixin selector - named - ironGolemDispenserPattern- Lnet/minecraft/block/CarvedPumpkinBlock;ironGolemDispenserPattern:Lnet/minecraft/block/pattern/BlockPattern;- intermediary - field_10752- Lnet/minecraft/class_2276;field_10752:Lnet/minecraft/class_2700;- official - e- Ldki;e:Ldxd;
 
- 
ironGolemPattern- Mappings:
- Namespace - Name - Mixin selector - named - ironGolemPattern- Lnet/minecraft/block/CarvedPumpkinBlock;ironGolemPattern:Lnet/minecraft/block/pattern/BlockPattern;- intermediary - field_10753- Lnet/minecraft/class_2276;field_10753:Lnet/minecraft/class_2700;- official - f- Ldki;f:Ldxd;
 
 
- 
- 
Constructor Details- 
CarvedPumpkinBlock- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V- intermediary - <init>- Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V- official - <init>- Ldwx;<init>(Ldwx$d;)V
 
 
- 
- 
Method Details- 
getCodec- Specified by:
- getCodecin class- HorizontalFacingBlock
- Mappings:
- Namespace - Name - Mixin selector - named - getCodec- Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;- intermediary - method_53969- Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;- official - a- Ldwx;a()Lcom/mojang/serialization/MapCodec;
 
- 
onBlockAddedprotected void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed. This includes block placement. When overriding this method,AbstractBlock.getStateForNeighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.WorldView, net.minecraft.world.tick.ScheduledTickView, net.minecraft.util.math.BlockPos, net.minecraft.util.math.Direction, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.util.math.random.Random)orAbstractBlock.neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.world.block.WireOrientation, boolean)should also be overridden. The method is used in the following cases:- When activating a redstone component on placement (used along with AbstractBlock.neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.world.block.WireOrientation, boolean)
- When resetting a position-dependent state (see TargetBlock)
- When converting a block on placement (see WetSpongeBlock)
- When fire lights a portal
 - Overrides:
- onBlockAddedin class- AbstractBlock
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - onBlockAdded- Lnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V- intermediary - method_9615- Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V- official - b- Ldwx;b(Ldwy;Ldgj;Lji;Ldwy;Z)V
 
- When activating a redstone component on placement (used along with 
- 
canDispense- Mappings:
- Namespace - Name - Mixin selector - named - canDispense- Lnet/minecraft/block/CarvedPumpkinBlock;canDispense(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z- intermediary - method_9733- Lnet/minecraft/class_2276;method_9733(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z- official - a- Ldki;a(Ldgm;Lji;)Z
 
- 
trySpawnEntity- Mappings:
- Namespace - Name - Mixin selector - named - trySpawnEntity- Lnet/minecraft/block/CarvedPumpkinBlock;trySpawnEntity(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V- intermediary - method_9731- Lnet/minecraft/class_2276;method_9731(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V- official - a- Ldki;a(Ldgj;Lji;)V
 
- 
spawnEntityprivate static void spawnEntity(World world, BlockPattern.Result patternResult, Entity entity, BlockPos pos) - Mappings:
- Namespace - Name - Mixin selector - named - spawnEntity- Lnet/minecraft/block/CarvedPumpkinBlock;spawnEntity(Lnet/minecraft/world/World;Lnet/minecraft/block/pattern/BlockPattern$Result;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)V- intermediary - method_45455- Lnet/minecraft/class_2276;method_45455(Lnet/minecraft/class_1937;Lnet/minecraft/class_2700$class_2702;Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)V- official - a- Ldki;a(Ldgj;Ldxd$b;Lbum;Lji;)V
 
- 
breakPatternBlocks- Mappings:
- Namespace - Name - Mixin selector - named - breakPatternBlocks- Lnet/minecraft/block/CarvedPumpkinBlock;breakPatternBlocks(Lnet/minecraft/world/World;Lnet/minecraft/block/pattern/BlockPattern$Result;)V- intermediary - method_45454- Lnet/minecraft/class_2276;method_45454(Lnet/minecraft/class_1937;Lnet/minecraft/class_2700$class_2702;)V- official - a- Ldki;a(Ldgj;Ldxd$b;)V
 
- 
updatePatternBlocks- Mappings:
- Namespace - Name - Mixin selector - named - updatePatternBlocks- Lnet/minecraft/block/CarvedPumpkinBlock;updatePatternBlocks(Lnet/minecraft/world/World;Lnet/minecraft/block/pattern/BlockPattern$Result;)V- intermediary - method_45456- Lnet/minecraft/class_2276;method_45456(Lnet/minecraft/class_1937;Lnet/minecraft/class_2700$class_2702;)V- official - b- Ldki;b(Ldgj;Ldxd$b;)V
 
- 
getPlacementState- Overrides:
- getPlacementStatein class- Block
- Mappings:
- Namespace - Name - Mixin selector - named - getPlacementState- Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;- intermediary - method_9605- Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;- official - a- Ldjn;a(Ldah;)Ldwy;
 
- 
appendPropertiesAppends block state properties to this block. To use this, override and callStateManager.Builder.add(net.minecraft.state.property.Property<?>[])inside the method. SeePropertiesfor the list of pre-defined properties.- Overrides:
- appendPropertiesin class- Block
- Mappings:
- Namespace - Name - Mixin selector - named - appendProperties- Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V- intermediary - method_9515- Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V- official - a- Ldjn;a(Ldwz$a;)V
 
- 
getSnowGolemDispenserPattern- Mappings:
- Namespace - Name - Mixin selector - named - getSnowGolemDispenserPattern- Lnet/minecraft/block/CarvedPumpkinBlock;getSnowGolemDispenserPattern()Lnet/minecraft/block/pattern/BlockPattern;- intermediary - method_9732- Lnet/minecraft/class_2276;method_9732()Lnet/minecraft/class_2700;- official - b- Ldki;b()Ldxd;
 
- 
getSnowGolemPattern- Mappings:
- Namespace - Name - Mixin selector - named - getSnowGolemPattern- Lnet/minecraft/block/CarvedPumpkinBlock;getSnowGolemPattern()Lnet/minecraft/block/pattern/BlockPattern;- intermediary - method_9729- Lnet/minecraft/class_2276;method_9729()Lnet/minecraft/class_2700;- official - q- Ldki;q()Ldxd;
 
- 
getIronGolemDispenserPattern- Mappings:
- Namespace - Name - Mixin selector - named - getIronGolemDispenserPattern- Lnet/minecraft/block/CarvedPumpkinBlock;getIronGolemDispenserPattern()Lnet/minecraft/block/pattern/BlockPattern;- intermediary - method_9727- Lnet/minecraft/class_2276;method_9727()Lnet/minecraft/class_2700;- official - r- Ldki;r()Ldxd;
 
- 
getIronGolemPattern- Mappings:
- Namespace - Name - Mixin selector - named - getIronGolemPattern- Lnet/minecraft/block/CarvedPumpkinBlock;getIronGolemPattern()Lnet/minecraft/block/pattern/BlockPattern;- intermediary - method_9730- Lnet/minecraft/class_2276;method_9730()Lnet/minecraft/class_2700;- official - y- Ldki;y()Ldxd;
 
 
-