Package net.minecraft.block
Class WitherSkullBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.BlockWithEntity
net.minecraft.block.AbstractSkullBlock
net.minecraft.block.SkullBlock
net.minecraft.block.WitherSkullBlock
- All Implemented Interfaces:
BlockEntityProvider,Equipment,ItemConvertible,ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/block/WitherSkullBlockintermediary net/minecraft/class_2570official dps
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.SkullBlock
SkullBlock.SkullType, SkullBlock.TypeNested 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 com.mojang.serialization.MapCodec<WitherSkullBlock> private static @Nullable BlockPatternprivate static @Nullable BlockPatternFields inherited from class net.minecraft.block.SkullBlock
MAX_ROTATION_INDEX, PIGLIN_SHAPE, ROTATION, SHAPEFields inherited from class net.minecraft.block.AbstractSkullBlock
POWEREDFields inherited from class net.minecraft.block.Block
field_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, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, 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 TypeMethodDescriptionstatic booleancanDispense(World world, BlockPos pos, ItemStack stack) com.mojang.serialization.MapCodec<WitherSkullBlock> getCodec()private static BlockPatternprivate static BlockPatternstatic voidvoidonPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.static voidonPlaced(World world, BlockPos pos, SkullBlockEntity blockEntity) Methods inherited from class net.minecraft.block.SkullBlock
appendProperties, getCullingShape, getOutlineShape, getPlacementState, mirror, rotateMethods inherited from class net.minecraft.block.AbstractSkullBlock
canPathfindThrough, createBlockEntity, getSkullType, getSlotType, getTicker, neighborUpdateMethods inherited from class net.minecraft.block.BlockWithEntity
createScreenHandlerFactory, getRenderType, onSyncedBlockEvent, validateTickerMethods 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, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createCodec, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, isTransparent, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onUse, onUseWithItem, prepare, randomTick, scheduledTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.BlockEntityProvider
getGameEventListenerMethods inherited from interface net.minecraft.item.Equipment
equipAndSwap, getEquipSoundMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/WitherSkullBlock;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_46504Lnet/minecraft/class_2570;field_46504:Lcom/mojang/serialization/MapCodec;official bLdps;b:Lcom/mojang/serialization/MapCodec;
-
witherBossPattern
- Mappings:
Namespace Name Mixin selector named witherBossPatternLnet/minecraft/block/WitherSkullBlock;witherBossPattern:Lnet/minecraft/block/pattern/BlockPattern;intermediary field_11765Lnet/minecraft/class_2570;field_11765:Lnet/minecraft/class_2700;official hLdps;h:Ldth;
-
witherDispenserPattern
- Mappings:
Namespace Name Mixin selector named witherDispenserPatternLnet/minecraft/block/WitherSkullBlock;witherDispenserPattern:Lnet/minecraft/block/pattern/BlockPattern;intermediary field_11764Lnet/minecraft/class_2570;field_11764:Lnet/minecraft/class_2700;official iLdps;i:Ldth;
-
-
Constructor Details
-
WitherSkullBlock
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vofficial <init>Ldtb;<init>(Ldtb$d;)V
-
-
Method Details
-
getCodec
- Overrides:
getCodecin classSkullBlock- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_53969Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;official aLdtb;a()Lcom/mojang/serialization/MapCodec;
-
onPlaced
public void onPlaced(World world, BlockPos pos, BlockState state, @Nullable @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.Tall or wide blocks (such as doors or beds) should override this to place the other half of the block. Blocks with block entities can use this to copy the data from the item stack, such as the custom name.
This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using
World.isClient.- Overrides:
onPlacedin classBlock- See Also:
- Mappings:
Namespace Name Mixin selector named onPlacedLnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)Vintermediary method_9567Lnet/minecraft/class_2248;method_9567(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)Vofficial aLdfy;a(Ldcw;Ljd;Ldtc;Lbtn;Lcuq;)V
-
onPlaced
- Mappings:
Namespace Name Mixin selector named onPlacedLnet/minecraft/block/WitherSkullBlock;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_56119Lnet/minecraft/class_2570;method_56119(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vofficial aLdps;a(Ldcw;Ljd;)V
-
onPlaced
- Mappings:
Namespace Name Mixin selector named onPlacedLnet/minecraft/block/WitherSkullBlock;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/entity/SkullBlockEntity;)Vintermediary method_10898Lnet/minecraft/class_2570;method_10898(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2631;)Vofficial aLdps;a(Ldcw;Ljd;Ldru;)V
-
canDispense
- Mappings:
Namespace Name Mixin selector named canDispenseLnet/minecraft/block/WitherSkullBlock;canDispense(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)Zintermediary method_10899Lnet/minecraft/class_2570;method_10899(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;)Zofficial bLdps;b(Ldcw;Ljd;Lcuq;)Z
-
getWitherBossPattern
- Mappings:
Namespace Name Mixin selector named getWitherBossPatternLnet/minecraft/block/WitherSkullBlock;getWitherBossPattern()Lnet/minecraft/block/pattern/BlockPattern;intermediary method_10900Lnet/minecraft/class_2570;method_10900()Lnet/minecraft/class_2700;official yLdps;y()Ldth;
-
getWitherDispenserPattern
- Mappings:
Namespace Name Mixin selector named getWitherDispenserPatternLnet/minecraft/block/WitherSkullBlock;getWitherDispenserPattern()Lnet/minecraft/block/pattern/BlockPattern;intermediary method_10897Lnet/minecraft/class_2570;method_10897()Lnet/minecraft/class_2700;official zLdps;z()Ldth;
-