Class JukeboxBlock

All Implemented Interfaces:
BlockEntityProvider

public class JukeboxBlock extends BlockWithEntity
Mappings:
Namespace Name
official amj
intermediary net/minecraft/class_175
named net/minecraft/block/JukeboxBlock
  • Field Details

    • HAS_RECORD

      public static final BooleanProperty HAS_RECORD
      Mappings:
      Namespace Name Mixin selector
      official a Lamj;a:Laro;
      intermediary field_9499 Lnet/minecraft/class_175;field_9499:Lnet/minecraft/class_2243;
      named HAS_RECORD Lnet/minecraft/block/JukeboxBlock;HAS_RECORD:Lnet/minecraft/state/property/BooleanProperty;
  • Constructor Details

    • JukeboxBlock

      protected JukeboxBlock()
  • Method Details

    • method_421

      public boolean method_421(World world, BlockPos blockPos, BlockState blockState, PlayerEntity playerEntity, Hand hand, @Nullable ItemStack itemStack, Direction direction, float float2, float float3, float float4)
      Overrides:
      method_421 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Laht;Lcl;Lard;Lzj;Lqm;Ladq;Lcs;FFF)Z
      intermediary method_421 Lnet/minecraft/class_197;method_421(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_988;Lnet/minecraft/class_2961;Lnet/minecraft/class_1071;Lnet/minecraft/class_1354;FFF)Z
      named method_421 Lnet/minecraft/block/Block;method_421(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;FFF)Z
    • method_8801

      public void method_8801(World world, BlockPos blockPos, BlockState blockState, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official a Lamj;a(Laht;Lcl;Lard;Ladq;)V
      intermediary method_8801 Lnet/minecraft/class_175;method_8801(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_1071;)V
      named method_8801 Lnet/minecraft/block/JukeboxBlock;method_8801(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/item/ItemStack;)V
    • method_8802

      private void method_8802(World world, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official e Lamj;e(Laht;Lcl;Lard;)V
      intermediary method_8802 Lnet/minecraft/class_175;method_8802(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named method_8802 Lnet/minecraft/block/JukeboxBlock;method_8802(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)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 Lajt;b(Laht;Lcl;Lard;)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
    • 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 Lajt;a(Laht;Lcl;Lard;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
    • createBlockEntity

      public BlockEntity createBlockEntity(World world, int id)
      Mappings:
      Namespace Name Mixin selector
      official a Lalg;a(Laht;I)Lapv;
      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;
    • method_11577

      public boolean method_11577(BlockState state)
      Overrides:
      method_11577 in class Block
      Mappings:
      Namespace Name Mixin selector
      official v Lajt;v(Lard;)Z
      intermediary method_11577 Lnet/minecraft/class_197;method_11577(Lnet/minecraft/class_2232;)Z
      named method_11577 Lnet/minecraft/block/Block;method_11577(Lnet/minecraft/block/BlockState;)Z
    • getComparatorOutput

      public int getComparatorOutput(BlockState state, World world, BlockPos pos)
      Overrides:
      getComparatorOutput in class Block
      Mappings:
      Namespace Name Mixin selector
      official d Lajt;d(Lard;Laht;Lcl;)I
      intermediary method_8686 Lnet/minecraft/class_197;method_8686(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)I
      named getComparatorOutput Lnet/minecraft/block/Block;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
    • getBlockRenderType

      public BlockRenderType getBlockRenderType(BlockState state)
      Overrides:
      getBlockRenderType in class BlockWithEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;)Laob;
      intermediary method_11552 Lnet/minecraft/class_197;method_11552(Lnet/minecraft/class_2232;)Lnet/minecraft/class_2733;
      named getBlockRenderType Lnet/minecraft/block/Block;getBlockRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
    • 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 Lajt;a(I)Lard;
      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 e Lajt;e(Lard;)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 b Lajt;b()Lare;
      intermediary method_8676 Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;