Class SkeletonSkullBlock

All Implemented Interfaces:
BlockEntityProvider

public class SkeletonSkullBlock extends BlockWithEntity
Mappings:
Namespace Name
official ajm
intermediary net/minecraft/class_1305
named net/minecraft/block/SkeletonSkullBlock
  • Field Details

    • FACING

      public static final DirectionProperty FACING
      Mappings:
      Namespace Name Mixin selector
      official a Lajm;a:Laml;
      intermediary field_9666 Lnet/minecraft/class_1305;field_9666:Lnet/minecraft/class_2244;
      named FACING Lnet/minecraft/block/SkeletonSkullBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
    • NO_DROP

      public static final BooleanProperty NO_DROP
      Mappings:
      Namespace Name Mixin selector
      official b Lajm;b:Lamk;
      intermediary field_9667 Lnet/minecraft/class_1305;field_9667:Lnet/minecraft/class_2243;
      named NO_DROP Lnet/minecraft/block/SkeletonSkullBlock;NO_DROP:Lnet/minecraft/state/property/BooleanProperty;
    • field_9663

      private static final Predicate<RayTraceResult> field_9663
      Mappings:
      Namespace Name Mixin selector
      official N Lajm;N:Lcom/google/common/base/Predicate;
      intermediary field_9663 Lnet/minecraft/class_1305;field_9663:Lcom/google/common/base/Predicate;
      named field_9663 Lnet/minecraft/block/SkeletonSkullBlock;field_9663:Lcom/google/common/base/Predicate;
    • field_9664

      private BlockPattern field_9664
      Mappings:
      Namespace Name Mixin selector
      official O Lajm;O:Lamd;
      intermediary field_9664 Lnet/minecraft/class_1305;field_9664:Lnet/minecraft/class_2236;
      named field_9664 Lnet/minecraft/block/SkeletonSkullBlock;field_9664:Lnet/minecraft/block/pattern/BlockPattern;
    • field_9665

      private BlockPattern field_9665
      Mappings:
      Namespace Name Mixin selector
      official P Lajm;P:Lamd;
      intermediary field_9665 Lnet/minecraft/class_1305;field_9665:Lnet/minecraft/class_2236;
      named field_9665 Lnet/minecraft/block/SkeletonSkullBlock;field_9665:Lnet/minecraft/block/pattern/BlockPattern;
  • Constructor Details

    • SkeletonSkullBlock

      protected SkeletonSkullBlock()
  • Method Details

    • getTranslatedName

      public String getTranslatedName()
      Translates and returns the translation key
      Overrides:
      getTranslatedName in class Block
      Returns:
      Translated name
      Mappings:
      Namespace Name Mixin selector
      official f Lafh;f()Ljava/lang/String;
      intermediary method_480 Lnet/minecraft/class_197;method_480()Ljava/lang/String;
      named getTranslatedName Lnet/minecraft/block/Block;getTranslatedName()Ljava/lang/String;
    • hasTransperancy

      public boolean hasTransperancy()
      Overrides:
      hasTransperancy in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lafh;c()Z
      intermediary method_449 Lnet/minecraft/class_197;method_449()Z
      named hasTransperancy Lnet/minecraft/block/Block;hasTransperancy()Z
    • renderAsNormalBlock

      public boolean renderAsNormalBlock()
      Returns whether the block can be rendered as a normal block
      Overrides:
      renderAsNormalBlock in class Block
      Returns:
      Whether the block can be rendered as a normal block
      Mappings:
      Namespace Name Mixin selector
      official d Lafh;d()Z
      intermediary method_441 Lnet/minecraft/class_197;method_441()Z
      named renderAsNormalBlock Lnet/minecraft/block/Block;renderAsNormalBlock()Z
    • setBoundingBox

      public void setBoundingBox(BlockView view, BlockPos pos)
      Overrides:
      setBoundingBox in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladq;Lcj;)V
      intermediary method_8652 Lnet/minecraft/class_197;method_8652(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)V
      named setBoundingBox Lnet/minecraft/block/Block;setBoundingBox(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)V
    • getCollisionBox

      public Box getCollisionBox(World world, BlockPos pos, BlockState state)
      Returns a box by adding the block's current location and the block's corresponding value in its Bounding Box
      Overrides:
      getCollisionBox in class Block
      Parameters:
      world - The world that the block has been placed
      pos - The block's position
      state - The block's BlockState
      Returns:
      The Collision box
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lalz;)Laug;
      intermediary method_8640 Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Box;
    • getStateFromData

      public BlockState getStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity)
      Returns a BlockState from an id
      Overrides:
      getStateFromData in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      dir - The block's direction
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lcq;FFFILpr;)Lalz;
      intermediary method_8645 Lnet/minecraft/class_197;method_8645(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;FFFILnet/minecraft/class_1699;)Lnet/minecraft/class_2232;
      named getStateFromData Lnet/minecraft/block/Block;getStateFromData(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFFILnet/minecraft/entity/LivingEntity;)Lnet/minecraft/block/BlockState;
    • createBlockEntity

      public BlockEntity createBlockEntity(World world, int id)
      Mappings:
      Namespace Name Mixin selector
      official a Lagq;a(Ladm;I)Lakw;
      intermediary method_309 Lnet/minecraft/class_1451;method_309(Lnet/minecraft/class_1150;I)Lnet/minecraft/class_226;
      named createBlockEntity Lnet/minecraft/block/BlockEntityProvider;createBlockEntity(Lnet/minecraft/world/World;I)Lnet/minecraft/block/entity/BlockEntity;
    • getPickItem

      @Environment(CLIENT) public Item getPickItem(World world, BlockPos pos)
      Called when a player presses the pick block key while facing the block. It returns the item that must be placed into the player's inventory.
      Overrides:
      getPickItem in class Block
      Returns:
      The Item that must be placed into the player's inventory
      Mappings:
      Namespace Name Mixin selector
      official c Lafh;c(Ladm;Lcj;)Lzw;
      intermediary method_8667 Lnet/minecraft/class_197;method_8667(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Lnet/minecraft/class_1069;
      named getPickItem Lnet/minecraft/block/Block;getPickItem(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/item/Item;
    • getMeta

      public int getMeta(World world, BlockPos pos)
      Returns metadata from a world and a BlockPos
      Overrides:
      getMeta in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      Returns:
      Metadata
      Mappings:
      Namespace Name Mixin selector
      official j Lafh;j(Ladm;Lcj;)I
      intermediary method_8683 Lnet/minecraft/class_197;method_8683(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)I
      named getMeta Lnet/minecraft/block/Block;getMeta(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
    • randomDropAsItem

      public void randomDropAsItem(World world, BlockPos pos, BlockState state, float chance, int id)
      Called when the block must be dropped as an item by dropAsItem, but luck is taken into consideration here.
      Overrides:
      randomDropAsItem in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      chance - The chance (luck factor)
      id - Id
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lalz;FI)V
      intermediary method_410 Lnet/minecraft/class_197;method_410(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;FI)V
      named randomDropAsItem Lnet/minecraft/block/Block;randomDropAsItem(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;FI)V
    • onBreakByPlayer

      public void onBreakByPlayer(World world, BlockPos pos, BlockState state, PlayerEntity player)
      Runs when the block is broken by a player.
      Overrides:
      onBreakByPlayer in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      player - The player who broke the block
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lalz;Lwn;)V
      intermediary method_8644 Lnet/minecraft/class_197;method_8644(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_988;)V
      named onBreakByPlayer Lnet/minecraft/block/Block;onBreakByPlayer(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
    • onBreaking

      public void onBreaking(World world, BlockPos pos, BlockState state)
      Runs when the block is removed (by an entity or explosion).
      Overrides:
      onBreaking in class BlockWithEntity
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      Mappings:
      Namespace Name Mixin selector
      official b Lafh;b(Ladm;Lcj;Lalz;)V
      intermediary method_8659 Lnet/minecraft/class_197;method_8659(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named onBreaking Lnet/minecraft/block/Block;onBreaking(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • getDropItem

      public Item getDropItem(BlockState blockState, Random random, int state)
      Returns the item that must be dropped when the block is broken
      Overrides:
      getDropItem in class Block
      Parameters:
      blockState - The block's BlockState
      random - Random object
      state - State
      Returns:
      The Item that drops after the block breaks
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Lalz;Ljava/util/Random;I)Lzw;
      intermediary method_398 Lnet/minecraft/class_197;method_398(Lnet/minecraft/class_2232;Ljava/util/Random;I)Lnet/minecraft/class_1069;
      named getDropItem Lnet/minecraft/block/Block;getDropItem(Lnet/minecraft/block/BlockState;Ljava/util/Random;I)Lnet/minecraft/item/Item;
    • method_8900

      public boolean method_8900(World world, BlockPos blockPos, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official b Lajm;b(Ladm;Lcj;Lzx;)Z
      intermediary method_8900 Lnet/minecraft/class_1305;method_8900(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1071;)Z
      named method_8900 Lnet/minecraft/block/SkeletonSkullBlock;method_8900(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)Z
    • method_8899

      public void method_8899(World world, BlockPos blockPos, SkullBlockEntity skullBlockEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lajm;a(Ladm;Lcj;Lalo;)V
      intermediary method_8899 Lnet/minecraft/class_1305;method_8899(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1311;)V
      named method_8899 Lnet/minecraft/block/SkeletonSkullBlock;method_8899(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/entity/SkullBlockEntity;)V
    • stateFromData

      public BlockState stateFromData(int data)
      Returns a blockstate of the current block from it's id
      Overrides:
      stateFromData in class Block
      Parameters:
      data - The Blockstate's associated data value
      Returns:
      The Default state
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(I)Lalz;
      intermediary method_8635 Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;
      named stateFromData Lnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
    • getData

      public int getData(BlockState state)
      Returns the data value for a blockstate Throws an IllegalArmumentException as this method does not work
      Overrides:
      getData in class Block
      Parameters:
      state - The Blockstate
      Returns:
      Zero
      Mappings:
      Namespace Name Mixin selector
      official c Lafh;c(Lalz;)I
      intermediary method_8671 Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)I
      named getData Lnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
    • appendProperties

      protected StateManager appendProperties()
      Returns a new state manager with a property array.
      Overrides:
      appendProperties in class Block
      Returns:
      New state manager
      Mappings:
      Namespace Name Mixin selector
      official e Lafh;e()Lama;
      intermediary method_8676 Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
    • method_8901

      protected BlockPattern method_8901()
      Mappings:
      Namespace Name Mixin selector
      official l Lajm;l()Lamd;
      intermediary method_8901 Lnet/minecraft/class_1305;method_8901()Lnet/minecraft/class_2236;
      named method_8901 Lnet/minecraft/block/SkeletonSkullBlock;method_8901()Lnet/minecraft/block/pattern/BlockPattern;
    • method_8902

      protected BlockPattern method_8902()
      Mappings:
      Namespace Name Mixin selector
      official n Lajm;n()Lamd;
      intermediary method_8902 Lnet/minecraft/class_1305;method_8902()Lnet/minecraft/class_2236;
      named method_8902 Lnet/minecraft/block/SkeletonSkullBlock;method_8902()Lnet/minecraft/block/pattern/BlockPattern;