Class WallPlayerSkullBlock

All Implemented Interfaces:
BlockEntityProvider, Equipment, ItemConvertible, ToggleableFeature

public class WallPlayerSkullBlock extends WallSkullBlock
Mappings:
Namespace Name
official dfs
intermediary net/minecraft/class_2433
named net/minecraft/block/WallPlayerSkullBlock
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<WallPlayerSkullBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Ldfs;b:Lcom/mojang/serialization/MapCodec;
      intermediary field_46412 Lnet/minecraft/class_2433;field_46412:Lcom/mojang/serialization/MapCodec;
      named CODEC Lnet/minecraft/block/WallPlayerSkullBlock;CODEC:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • WallPlayerSkullBlock

      protected WallPlayerSkullBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldna;<init>(Ldna$d;)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

    • getCodec

      public com.mojang.serialization.MapCodec<WallPlayerSkullBlock> getCodec()
      Overrides:
      getCodec in class WallSkullBlock
      Mappings:
      Namespace Name Mixin selector
      official a Ldna;a()Lcom/mojang/serialization/MapCodec;
      intermediary method_53969 Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;
      named getCodec Lnet/minecraft/block/AbstractBlock;getCodec()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
      official a Ldac;a(Lcxb;Lib;Ldnb;Lbpp;Lcqm;)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
      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