Class JukeboxBlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.JukeboxBlockEntity
All Implemented Interfaces:
Inventory, SingleStackInventory, SingleStackInventory.SingleStackBlockEntityInventory, Clearable

public class JukeboxBlockEntity extends BlockEntity implements Clearable, SingleStackInventory.SingleStackBlockEntityInventory
Mappings:
Namespace Name
named net/minecraft/block/entity/JukeboxBlockEntity
intermediary net/minecraft/class_2619
official drh
  • Field Details

    • field_52064

      public static final String field_52064
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52064 Lnet/minecraft/block/entity/JukeboxBlockEntity;field_52064:Ljava/lang/String;
      intermediary field_52064 Lnet/minecraft/class_2619;field_52064:Ljava/lang/String;
      official b Ldrh;b:Ljava/lang/String;
    • field_52065

      public static final String field_52065
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52065 Lnet/minecraft/block/entity/JukeboxBlockEntity;field_52065:Ljava/lang/String;
      intermediary field_52065 Lnet/minecraft/class_2619;field_52065:Ljava/lang/String;
      official c Ldrh;c:Ljava/lang/String;
    • recordStack

      private ItemStack recordStack
      Mappings:
      Namespace Name Mixin selector
      named recordStack Lnet/minecraft/block/entity/JukeboxBlockEntity;recordStack:Lnet/minecraft/item/ItemStack;
      intermediary field_46507 Lnet/minecraft/class_2619;field_46507:Lnet/minecraft/class_1799;
      official d Ldrh;d:Lcuo;
    • field_52066

      private final class_9794 field_52066
      Mappings:
      Namespace Name Mixin selector
      named field_52066 Lnet/minecraft/block/entity/JukeboxBlockEntity;field_52066:Lnet/minecraft/class_9794;
      intermediary field_52066 Lnet/minecraft/class_2619;field_52066:Lnet/minecraft/class_9794;
      official e Ldrh;e:Lcuu;
  • Constructor Details

    • JukeboxBlockEntity

      public JukeboxBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/entity/JukeboxBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary <init> Lnet/minecraft/class_2619;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official <init> Ldrh;<init>(Ljd;Ldta;)V
  • Method Details

    • method_60784

      public class_9794 method_60784()
      Mappings:
      Namespace Name Mixin selector
      named method_60784 Lnet/minecraft/block/entity/JukeboxBlockEntity;method_60784()Lnet/minecraft/class_9794;
      intermediary method_60784 Lnet/minecraft/class_2619;method_60784()Lnet/minecraft/class_9794;
      official j Ldrh;j()Lcuu;
    • method_60785

      public void method_60785()
      Mappings:
      Namespace Name Mixin selector
      named method_60785 Lnet/minecraft/block/entity/JukeboxBlockEntity;method_60785()V
      intermediary method_60785 Lnet/minecraft/class_2619;method_60785()V
      official k Ldrh;k()V
    • method_60782

      private void method_60782(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      named method_60782 Lnet/minecraft/block/entity/JukeboxBlockEntity;method_60782(Z)V
      intermediary method_60782 Lnet/minecraft/class_2619;method_60782(Z)V
      official a Ldrh;a(Z)V
    • dropRecord

      public void dropRecord()
      Mappings:
      Namespace Name Mixin selector
      named dropRecord Lnet/minecraft/block/entity/JukeboxBlockEntity;dropRecord()V
      intermediary method_49213 Lnet/minecraft/class_2619;method_49213()V
      official l Ldrh;l()V
    • tick

      public static void tick(World world, BlockPos pos, BlockState state, JukeboxBlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/block/entity/JukeboxBlockEntity;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/JukeboxBlockEntity;)V
      intermediary method_44370 Lnet/minecraft/class_2619;method_44370(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2619;)V
      official a Ldrh;a(Ldcu;Ljd;Ldta;Ldrh;)V
    • readNbt

      protected void readNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup)
      Reads data from nbt. Subclasses should override this if they store a persistent data.

      NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Overrides:
      readNbt in class BlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readNbt Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
      intermediary method_11014 Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
      official a Ldqf;a(Lua;Ljo$a;)V
    • writeNbt

      protected void writeNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup)
      Writes data to nbt. Subclasses should override this if they store a persistent data.

      NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.

      Overrides:
      writeNbt in class BlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeNbt Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
      intermediary method_11007 Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
      official b Ldqf;b(Lua;Ljo$a;)V
    • getStack

      public ItemStack getStack()
      Specified by:
      getStack in interface SingleStackInventory
      Mappings:
      Namespace Name Mixin selector
      named getStack Lnet/minecraft/inventory/SingleStackInventory;getStack()Lnet/minecraft/item/ItemStack;
      intermediary method_54079 Lnet/minecraft/class_8181;method_54079()Lnet/minecraft/class_1799;
      official f Leyh;f()Lcuo;
    • decreaseStack

      public ItemStack decreaseStack(int count)
      Specified by:
      decreaseStack in interface SingleStackInventory
      Mappings:
      Namespace Name Mixin selector
      named decreaseStack Lnet/minecraft/inventory/SingleStackInventory;decreaseStack(I)Lnet/minecraft/item/ItemStack;
      intermediary method_54078 Lnet/minecraft/class_8181;method_54078(I)Lnet/minecraft/class_1799;
      official c Leyh;c(I)Lcuo;
    • setStack

      public void setStack(ItemStack stack)
      Specified by:
      setStack in interface SingleStackInventory
      Mappings:
      Namespace Name Mixin selector
      named setStack Lnet/minecraft/inventory/SingleStackInventory;setStack(Lnet/minecraft/item/ItemStack;)V
      intermediary method_54077 Lnet/minecraft/class_8181;method_54077(Lnet/minecraft/class_1799;)V
      official b Leyh;b(Lcuo;)V
    • getMaxCountPerStack

      public int getMaxCountPerStack()
      Returns the maximum number of items a stack can contain when placed inside this inventory.

      No slots may have more than this number of items. It is effectively the stacking limit for this inventory's slots.

      Specified by:
      getMaxCountPerStack in interface Inventory
      Returns:
      the maximum number of items a stack can contain when placed inside this inventory
      Mappings:
      Namespace Name Mixin selector
      named getMaxCountPerStack Lnet/minecraft/inventory/Inventory;getMaxCountPerStack()I
      intermediary method_5444 Lnet/minecraft/class_1263;method_5444()I
      official ah_ Lbqj;ah_()I
    • asBlockEntity

      public BlockEntity asBlockEntity()
      Specified by:
      asBlockEntity in interface SingleStackInventory.SingleStackBlockEntityInventory
      Mappings:
      Namespace Name Mixin selector
      named asBlockEntity Lnet/minecraft/inventory/SingleStackInventory$SingleStackBlockEntityInventory;asBlockEntity()Lnet/minecraft/block/entity/BlockEntity;
      intermediary method_54080 Lnet/minecraft/class_8181$class_9210;method_54080()Lnet/minecraft/class_2586;
      official v Leyh$a;v()Ldqf;
    • isValid

      public boolean isValid(int slot, ItemStack stack)
      Returns whether stack is valid for the slot.

      Implementations can, for example, use this to check whether the item is in a specific tag. This returns true by default.

      Specified by:
      isValid in interface Inventory
      Returns:
      whether stack is valid for the slot
      Mappings:
      Namespace Name Mixin selector
      named isValid Lnet/minecraft/inventory/Inventory;isValid(ILnet/minecraft/item/ItemStack;)Z
      intermediary method_5437 Lnet/minecraft/class_1263;method_5437(ILnet/minecraft/class_1799;)Z
      official b Lbqj;b(ILcuo;)Z
    • canTransferTo

      public boolean canTransferTo(Inventory hopperInventory, int slot, ItemStack stack)
      Returns whether a hopper can transfer stack from slot to the hopper.

      This returns true by default.

      Specified by:
      canTransferTo in interface Inventory
      Returns:
      whether a hopper can transfer stack from slot to the hopper
      Mappings:
      Namespace Name Mixin selector
      named canTransferTo Lnet/minecraft/inventory/Inventory;canTransferTo(Lnet/minecraft/inventory/Inventory;ILnet/minecraft/item/ItemStack;)Z
      intermediary method_49104 Lnet/minecraft/class_1263;method_49104(Lnet/minecraft/class_1263;ILnet/minecraft/class_1799;)Z
      official a Lbqj;a(Lbqj;ILcuo;)Z
    • setDisc

      public void setDisc(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named setDisc Lnet/minecraft/block/entity/JukeboxBlockEntity;setDisc(Lnet/minecraft/item/ItemStack;)V
      intermediary method_49210 Lnet/minecraft/class_2619;method_49210(Lnet/minecraft/class_1799;)V
      official c Ldrh;c(Lcuo;)V
    • method_60786

      public void method_60786()
      Mappings:
      Namespace Name Mixin selector
      named method_60786 Lnet/minecraft/block/entity/JukeboxBlockEntity;method_60786()V
      intermediary method_60786 Lnet/minecraft/class_2619;method_60786()V
      official u Ldrh;u()V