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,- Vanishable,- Wearable
- Mappings:
- Namespace - Name - official - ckk- intermediary - net/minecraft/class_2276- named - net/minecraft/block/CarvedPumpkinBlock
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.block.BlockBlock.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlockAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final DirectionPropertyprivate @Nullable BlockPatternprivate @Nullable BlockPatternprivate static final Predicate<BlockState>private @Nullable BlockPatternprivate @Nullable BlockPatternFields inherited from class net.minecraft.block.Blockfield_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlockcollidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.booleancanDispense(WorldView world, BlockPos pos) private BlockPatternprivate BlockPatternprivate BlockPatternprivate BlockPatternvoidonBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.private voidtrySpawnEntity(World world, BlockPos pos) Methods inherited from class net.minecraft.block.HorizontalFacingBlockmirror, rotateMethods inherited from class net.minecraft.block.BlockafterBreak, appendStacks, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, 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, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, neighborUpdate, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, scheduledTick
- 
Field Details- 
FACING- Mappings:
- Namespace - Name - Mixin selector - official - a- Lckk;a:Lcwi;- intermediary - field_10748- Lnet/minecraft/class_2276;field_10748:Lnet/minecraft/class_2753;- named - FACING- Lnet/minecraft/block/CarvedPumpkinBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
 
- 
IS_GOLEM_HEAD_PREDICATE- Mappings:
- Namespace - Name - Mixin selector - official - f- Lckk;f:Ljava/util/function/Predicate;- intermediary - field_10751- Lnet/minecraft/class_2276;field_10751:Ljava/util/function/Predicate;- named - IS_GOLEM_HEAD_PREDICATE- Lnet/minecraft/block/CarvedPumpkinBlock;IS_GOLEM_HEAD_PREDICATE:Ljava/util/function/Predicate;
 
- 
snowGolemDispenserPattern- Mappings:
- Namespace - Name - Mixin selector - official - b- Lckk;b:Lcvt;- intermediary - field_10749- Lnet/minecraft/class_2276;field_10749:Lnet/minecraft/class_2700;- named - snowGolemDispenserPattern- Lnet/minecraft/block/CarvedPumpkinBlock;snowGolemDispenserPattern:Lnet/minecraft/block/pattern/BlockPattern;
 
- 
snowGolemPattern- Mappings:
- Namespace - Name - Mixin selector - official - c- Lckk;c:Lcvt;- intermediary - field_10750- Lnet/minecraft/class_2276;field_10750:Lnet/minecraft/class_2700;- named - snowGolemPattern- Lnet/minecraft/block/CarvedPumpkinBlock;snowGolemPattern:Lnet/minecraft/block/pattern/BlockPattern;
 
- 
ironGolemDispenserPattern- Mappings:
- Namespace - Name - Mixin selector - official - d- Lckk;d:Lcvt;- intermediary - field_10752- Lnet/minecraft/class_2276;field_10752:Lnet/minecraft/class_2700;- named - ironGolemDispenserPattern- Lnet/minecraft/block/CarvedPumpkinBlock;ironGolemDispenserPattern:Lnet/minecraft/block/pattern/BlockPattern;
 
- 
ironGolemPattern- Mappings:
- Namespace - Name - Mixin selector - official - e- Lckk;e:Lcvt;- intermediary - field_10753- Lnet/minecraft/class_2276;field_10753:Lnet/minecraft/class_2700;- named - ironGolemPattern- Lnet/minecraft/block/CarvedPumpkinBlock;ironGolemPattern:Lnet/minecraft/block/pattern/BlockPattern;
 
 
- 
- 
Constructor Details- 
CarvedPumpkinBlock- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lcvn;<init>(Lcvn$c;)V- intermediary - <init>- Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V- named - <init>- Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
 
 
- 
- 
Method Details- 
onBlockAddedpublic 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.util.math.Direction, net.minecraft.block.BlockState, net.minecraft.world.WorldAccess, net.minecraft.util.math.BlockPos, net.minecraft.util.math.BlockPos)orAbstractBlock.neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.util.math.BlockPos, 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.util.math.BlockPos, 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 - official - b- Lcvn;b(Lcvo;Lcgx;Lgt;Lcvo;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- 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
 
- When activating a redstone component on placement (used along with 
- 
canDispense- Mappings:
- Namespace - Name - Mixin selector - official - a- Lckk;a(Lcha;Lgt;)Z- intermediary - method_9733- Lnet/minecraft/class_2276;method_9733(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z- named - canDispense- Lnet/minecraft/block/CarvedPumpkinBlock;canDispense(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
 
- 
trySpawnEntity- Mappings:
- Namespace - Name - Mixin selector - official - a- Lckk;a(Lcgx;Lgt;)V- intermediary - method_9731- Lnet/minecraft/class_2276;method_9731(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V- named - trySpawnEntity- Lnet/minecraft/block/CarvedPumpkinBlock;trySpawnEntity(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
 
- 
getPlacementState- Overrides:
- getPlacementStatein class- Block
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcjt;a(Lccx;)Lcvo;- intermediary - method_9605- Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;- named - getPlacementState- Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
 
- 
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 - official - a- Lcjt;a(Lcvp$a;)V- intermediary - method_9515- Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V- named - appendProperties- Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
 
- 
getSnowGolemDispenserPattern- Mappings:
- Namespace - Name - Mixin selector - official - b- Lckk;b()Lcvt;- intermediary - method_9732- Lnet/minecraft/class_2276;method_9732()Lnet/minecraft/class_2700;- named - getSnowGolemDispenserPattern- Lnet/minecraft/block/CarvedPumpkinBlock;getSnowGolemDispenserPattern()Lnet/minecraft/block/pattern/BlockPattern;
 
- 
getSnowGolemPattern- Mappings:
- Namespace - Name - Mixin selector - official - q- Lckk;q()Lcvt;- intermediary - method_9729- Lnet/minecraft/class_2276;method_9729()Lnet/minecraft/class_2700;- named - getSnowGolemPattern- Lnet/minecraft/block/CarvedPumpkinBlock;getSnowGolemPattern()Lnet/minecraft/block/pattern/BlockPattern;
 
- 
getIronGolemDispenserPattern- Mappings:
- Namespace - Name - Mixin selector - official - u- Lckk;u()Lcvt;- intermediary - method_9727- Lnet/minecraft/class_2276;method_9727()Lnet/minecraft/class_2700;- named - getIronGolemDispenserPattern- Lnet/minecraft/block/CarvedPumpkinBlock;getIronGolemDispenserPattern()Lnet/minecraft/block/pattern/BlockPattern;
 
- 
getIronGolemPattern- Mappings:
- Namespace - Name - Mixin selector - official - v- Lckk;v()Lcvt;- intermediary - method_9730- Lnet/minecraft/class_2276;method_9730()Lnet/minecraft/class_2700;- named - getIronGolemPattern- Lnet/minecraft/block/CarvedPumpkinBlock;getIronGolemPattern()Lnet/minecraft/block/pattern/BlockPattern;
 
 
-