Class WitherSkullBlock

All Implemented Interfaces:
BlockEntityProvider, ItemConvertible, ToggleableFeature

public class WitherSkullBlock extends SkullBlock
Mappings:
Namespace Name
named net/minecraft/block/WitherSkullBlock
intermediary net/minecraft/class_2570
official duh
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<WitherSkullBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/WitherSkullBlock;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46504 Lnet/minecraft/class_2570;field_46504:Lcom/mojang/serialization/MapCodec;
      official b Lduh;b:Lcom/mojang/serialization/MapCodec;
    • witherBossPattern

      @Nullable private static @Nullable BlockPattern witherBossPattern
      Mappings:
      Namespace Name Mixin selector
      named witherBossPattern Lnet/minecraft/block/WitherSkullBlock;witherBossPattern:Lnet/minecraft/block/pattern/BlockPattern;
      intermediary field_11765 Lnet/minecraft/class_2570;field_11765:Lnet/minecraft/class_2700;
      official h Lduh;h:Ldxz;
    • witherDispenserPattern

      @Nullable private static @Nullable BlockPattern witherDispenserPattern
      Mappings:
      Namespace Name Mixin selector
      named witherDispenserPattern Lnet/minecraft/block/WitherSkullBlock;witherDispenserPattern:Lnet/minecraft/block/pattern/BlockPattern;
      intermediary field_11764 Lnet/minecraft/class_2570;field_11764:Lnet/minecraft/class_2700;
      official i Lduh;i:Ldxz;
  • Constructor Details

    • WitherSkullBlock

      protected WitherSkullBlock(AbstractBlock.Settings settings)
      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> Ldxt;<init>(Ldxt$d;)V
  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<WitherSkullBlock> getCodec()
      Overrides:
      getCodec in class SkullBlock
      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 Ldxt;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:
      onPlaced in class Block
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named onPlaced Lnet/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;)V
      intermediary method_9567 Lnet/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;)V
      official a Ldkl;a(Ldhh;Ljh;Ldxu;Lbwf;Lcxo;)V
    • onPlaced

      public static void onPlaced(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named onPlaced Lnet/minecraft/block/WitherSkullBlock;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_56119 Lnet/minecraft/class_2570;method_56119(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
      official a Lduh;a(Ldhh;Ljh;)V
    • onPlaced

      public static void onPlaced(World world, BlockPos pos, SkullBlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      named onPlaced Lnet/minecraft/block/WitherSkullBlock;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/entity/SkullBlockEntity;)V
      intermediary method_10898 Lnet/minecraft/class_2570;method_10898(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2631;)V
      official a Lduh;a(Ldhh;Ljh;Ldwl;)V
    • canDispense

      public static boolean canDispense(World world, BlockPos pos, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named canDispense Lnet/minecraft/block/WitherSkullBlock;canDispense(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)Z
      intermediary method_10899 Lnet/minecraft/class_2570;method_10899(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;)Z
      official b Lduh;b(Ldhh;Ljh;Lcxo;)Z
    • getWitherBossPattern

      private static BlockPattern getWitherBossPattern()
      Mappings:
      Namespace Name Mixin selector
      named getWitherBossPattern Lnet/minecraft/block/WitherSkullBlock;getWitherBossPattern()Lnet/minecraft/block/pattern/BlockPattern;
      intermediary method_10900 Lnet/minecraft/class_2570;method_10900()Lnet/minecraft/class_2700;
      official q Lduh;q()Ldxz;
    • getWitherDispenserPattern

      private static BlockPattern getWitherDispenserPattern()
      Mappings:
      Namespace Name Mixin selector
      named getWitherDispenserPattern Lnet/minecraft/block/WitherSkullBlock;getWitherDispenserPattern()Lnet/minecraft/block/pattern/BlockPattern;
      intermediary method_10897 Lnet/minecraft/class_2570;method_10897()Lnet/minecraft/class_2700;
      official r Lduh;r()Ldxz;