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:
Equipment,ItemConvertible,Vanishable,ToggleableFeature
- Mappings:
Namespace Name intermediary net/minecraft/class_2276official cqenamed net/minecraft/block/CarvedPumpkinBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DirectionPropertyprivate @Nullable BlockPatternprivate @Nullable BlockPatternprivate static final Predicate<BlockState>private @Nullable BlockPatternprivate @Nullable BlockPatternFields inherited from class net.minecraft.block.Block
field_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, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
Constructors -
Method Summary
Modifier 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) 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 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.HorizontalFacingBlock
mirror, rotateMethods inherited from class net.minecraft.block.Block
afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, 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, isTransparent, 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.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, neighborUpdate, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, scheduledTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.item.Equipment
equipAndSwap, getEquipSoundMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
FACING
- Mappings:
Namespace Name Mixin selector intermediary field_10748Lnet/minecraft/class_2276;field_10748:Lnet/minecraft/class_2753;official aLcqe;a:Ldcs;named FACINGLnet/minecraft/block/CarvedPumpkinBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
-
IS_GOLEM_HEAD_PREDICATE
- Mappings:
Namespace Name Mixin selector intermediary field_10751Lnet/minecraft/class_2276;field_10751:Ljava/util/function/Predicate;official fLcqe;f:Ljava/util/function/Predicate;named IS_GOLEM_HEAD_PREDICATELnet/minecraft/block/CarvedPumpkinBlock;IS_GOLEM_HEAD_PREDICATE:Ljava/util/function/Predicate;
-
snowGolemDispenserPattern
- Mappings:
Namespace Name Mixin selector intermediary field_10749Lnet/minecraft/class_2276;field_10749:Lnet/minecraft/class_2700;official bLcqe;b:Ldcd;named snowGolemDispenserPatternLnet/minecraft/block/CarvedPumpkinBlock;snowGolemDispenserPattern:Lnet/minecraft/block/pattern/BlockPattern;
-
snowGolemPattern
- Mappings:
Namespace Name Mixin selector intermediary field_10750Lnet/minecraft/class_2276;field_10750:Lnet/minecraft/class_2700;official cLcqe;c:Ldcd;named snowGolemPatternLnet/minecraft/block/CarvedPumpkinBlock;snowGolemPattern:Lnet/minecraft/block/pattern/BlockPattern;
-
ironGolemDispenserPattern
- Mappings:
Namespace Name Mixin selector intermediary field_10752Lnet/minecraft/class_2276;field_10752:Lnet/minecraft/class_2700;official dLcqe;d:Ldcd;named ironGolemDispenserPatternLnet/minecraft/block/CarvedPumpkinBlock;ironGolemDispenserPattern:Lnet/minecraft/block/pattern/BlockPattern;
-
ironGolemPattern
- Mappings:
Namespace Name Mixin selector intermediary field_10753Lnet/minecraft/class_2276;field_10753:Lnet/minecraft/class_2700;official eLcqe;e:Ldcd;named ironGolemPatternLnet/minecraft/block/CarvedPumpkinBlock;ironGolemPattern:Lnet/minecraft/block/pattern/BlockPattern;
-
-
Constructor Details
-
CarvedPumpkinBlock
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vofficial <init>Ldbx;<init>(Ldbx$d;)Vnamed <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
onBlockAdded
public 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 classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_9615Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Vofficial bLdbx;b(Ldby;Lcmk;Lgu;Ldby;Z)Vnamed onBlockAddedLnet/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 intermediary method_9733Lnet/minecraft/class_2276;method_9733(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Zofficial aLcqe;a(Lcmn;Lgu;)Znamed canDispenseLnet/minecraft/block/CarvedPumpkinBlock;canDispense(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
-
trySpawnEntity
- Mappings:
Namespace Name Mixin selector intermediary method_9731Lnet/minecraft/class_2276;method_9731(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vofficial aLcqe;a(Lcmk;Lgu;)Vnamed trySpawnEntityLnet/minecraft/block/CarvedPumpkinBlock;trySpawnEntity(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
spawnEntity
private static void spawnEntity(World world, BlockPattern.Result patternResult, Entity entity, BlockPos pos) - Mappings:
Namespace Name Mixin selector intermediary method_45455Lnet/minecraft/class_2276;method_45455(Lnet/minecraft/class_1937;Lnet/minecraft/class_2700$class_2702;Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)Vofficial aLcqe;a(Lcmk;Ldcd$b;Lbfh;Lgu;)Vnamed spawnEntityLnet/minecraft/block/CarvedPumpkinBlock;spawnEntity(Lnet/minecraft/world/World;Lnet/minecraft/block/pattern/BlockPattern$Result;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;)V
-
breakPatternBlocks
- Mappings:
Namespace Name Mixin selector intermediary method_45454Lnet/minecraft/class_2276;method_45454(Lnet/minecraft/class_1937;Lnet/minecraft/class_2700$class_2702;)Vofficial aLcqe;a(Lcmk;Ldcd$b;)Vnamed breakPatternBlocksLnet/minecraft/block/CarvedPumpkinBlock;breakPatternBlocks(Lnet/minecraft/world/World;Lnet/minecraft/block/pattern/BlockPattern$Result;)V
-
updatePatternBlocks
- Mappings:
Namespace Name Mixin selector intermediary method_45456Lnet/minecraft/class_2276;method_45456(Lnet/minecraft/class_1937;Lnet/minecraft/class_2700$class_2702;)Vofficial bLcqe;b(Lcmk;Ldcd$b;)Vnamed updatePatternBlocksLnet/minecraft/block/CarvedPumpkinBlock;updatePatternBlocks(Lnet/minecraft/world/World;Lnet/minecraft/block/pattern/BlockPattern$Result;)V
-
getPlacementState
- Overrides:
getPlacementStatein classBlock- Mappings:
Namespace Name Mixin selector intermediary method_9605Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;official aLcpl;a(Lcif;)Ldby;named getPlacementStateLnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
appendProperties
Appends 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 classBlock- Mappings:
Namespace Name Mixin selector intermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vofficial aLcpl;a(Ldbz$a;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
getSnowGolemDispenserPattern
- Mappings:
Namespace Name Mixin selector intermediary method_9732Lnet/minecraft/class_2276;method_9732()Lnet/minecraft/class_2700;official aLcqe;a()Ldcd;named getSnowGolemDispenserPatternLnet/minecraft/block/CarvedPumpkinBlock;getSnowGolemDispenserPattern()Lnet/minecraft/block/pattern/BlockPattern;
-
getSnowGolemPattern
- Mappings:
Namespace Name Mixin selector intermediary method_9729Lnet/minecraft/class_2276;method_9729()Lnet/minecraft/class_2700;official uLcqe;u()Ldcd;named getSnowGolemPatternLnet/minecraft/block/CarvedPumpkinBlock;getSnowGolemPattern()Lnet/minecraft/block/pattern/BlockPattern;
-
getIronGolemDispenserPattern
- Mappings:
Namespace Name Mixin selector intermediary method_9727Lnet/minecraft/class_2276;method_9727()Lnet/minecraft/class_2700;official vLcqe;v()Ldcd;named getIronGolemDispenserPatternLnet/minecraft/block/CarvedPumpkinBlock;getIronGolemDispenserPattern()Lnet/minecraft/block/pattern/BlockPattern;
-
getIronGolemPattern
- Mappings:
Namespace Name Mixin selector intermediary method_9730Lnet/minecraft/class_2276;method_9730()Lnet/minecraft/class_2700;official wLcqe;w()Ldcd;named getIronGolemPatternLnet/minecraft/block/CarvedPumpkinBlock;getIronGolemPattern()Lnet/minecraft/block/pattern/BlockPattern;
-
getSlotType
- Specified by:
getSlotTypein interfaceEquipment- Mappings:
Namespace Name Mixin selector intermediary method_7685Lnet/minecraft/class_5151;method_7685()Lnet/minecraft/class_1304;official gLcey;g()Lbfm;named getSlotTypeLnet/minecraft/item/Equipment;getSlotType()Lnet/minecraft/entity/EquipmentSlot;
-