Interface LootableInventory

All Superinterfaces:
Clearable, Inventory
All Known Implementing Classes:
BarrelBlockEntity, ChestBlockEntity, CrafterBlockEntity, DecoratedPotBlockEntity, DispenserBlockEntity, DropperBlockEntity, HopperBlockEntity, LootableContainerBlockEntity, ShulkerBoxBlockEntity, TrappedChestBlockEntity

public interface LootableInventory extends Inventory
Mappings:
Namespace Name
official bji
intermediary net/minecraft/class_8934
named net/minecraft/inventory/LootableInventory
  • Field Details

    • LOOT_TABLE_KEY

      static final String LOOT_TABLE_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbji;c:Ljava/lang/String;
      intermediary field_47154 Lnet/minecraft/class_8934;field_47154:Ljava/lang/String;
      named LOOT_TABLE_KEY Lnet/minecraft/inventory/LootableInventory;LOOT_TABLE_KEY:Ljava/lang/String;
    • LOOT_TABLE_SEED_KEY

      static final String LOOT_TABLE_SEED_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lbji;d:Ljava/lang/String;
      intermediary field_47155 Lnet/minecraft/class_8934;field_47155:Ljava/lang/String;
      named LOOT_TABLE_SEED_KEY Lnet/minecraft/inventory/LootableInventory;LOOT_TABLE_SEED_KEY:Ljava/lang/String;
  • Method Details

    • getLootTable

      Mappings:
      Namespace Name Mixin selector
      official aA_ Lbji;aA_()Lagm;
      intermediary method_54869 Lnet/minecraft/class_8934;method_54869()Lnet/minecraft/class_2960;
      named getLootTable Lnet/minecraft/inventory/LootableInventory;getLootTable()Lnet/minecraft/util/Identifier;
    • setLootTable

      void setLootTable(@Nullable @Nullable Identifier lootTableId)
      Mappings:
      Namespace Name Mixin selector
      official a Lbji;a(Lagm;)V
      intermediary method_11285 Lnet/minecraft/class_8934;method_11285(Lnet/minecraft/class_2960;)V
      named setLootTable Lnet/minecraft/inventory/LootableInventory;setLootTable(Lnet/minecraft/util/Identifier;)V
    • setLootTable

      default void setLootTable(Identifier lootTableId, long lootTableSeed)
      Mappings:
      Namespace Name Mixin selector
      official a Lbji;a(Lagm;J)V
      intermediary method_54867 Lnet/minecraft/class_8934;method_54867(Lnet/minecraft/class_2960;J)V
      named setLootTable Lnet/minecraft/inventory/LootableInventory;setLootTable(Lnet/minecraft/util/Identifier;J)V
    • getLootTableSeed

      long getLootTableSeed()
      Mappings:
      Namespace Name Mixin selector
      official aB_ Lbji;aB_()J
      intermediary method_54870 Lnet/minecraft/class_8934;method_54870()J
      named getLootTableSeed Lnet/minecraft/inventory/LootableInventory;getLootTableSeed()J
    • setLootTableSeed

      void setLootTableSeed(long lootTableSeed)
      Mappings:
      Namespace Name Mixin selector
      official a Lbji;a(J)V
      intermediary method_54866 Lnet/minecraft/class_8934;method_54866(J)V
      named setLootTableSeed Lnet/minecraft/inventory/LootableInventory;setLootTableSeed(J)V
    • getPos

      BlockPos getPos()
      Mappings:
      Namespace Name Mixin selector
      official aC_ Lbji;aC_()Lhx;
      intermediary method_11016 Lnet/minecraft/class_8934;method_11016()Lnet/minecraft/class_2338;
      named getPos Lnet/minecraft/inventory/LootableInventory;getPos()Lnet/minecraft/util/math/BlockPos;
    • getWorld

      Mappings:
      Namespace Name Mixin selector
      official i Lbji;i()Lcsf;
      intermediary method_10997 Lnet/minecraft/class_8934;method_10997()Lnet/minecraft/class_1937;
      named getWorld Lnet/minecraft/inventory/LootableInventory;getWorld()Lnet/minecraft/world/World;
    • setLootTable

      static void setLootTable(BlockView world, Random random, BlockPos pos, Identifier lootTableId)
      Mappings:
      Namespace Name Mixin selector
      official a Lbji;a(Lcrl;Latw;Lhx;Lagm;)V
      intermediary method_54868 Lnet/minecraft/class_8934;method_54868(Lnet/minecraft/class_1922;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;Lnet/minecraft/class_2960;)V
      named setLootTable Lnet/minecraft/inventory/LootableInventory;setLootTable(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/Identifier;)V
    • readLootTable

      default boolean readLootTable(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official c_ Lbji;c_(Lsd;)Z
      intermediary method_54871 Lnet/minecraft/class_8934;method_54871(Lnet/minecraft/class_2487;)Z
      named readLootTable Lnet/minecraft/inventory/LootableInventory;readLootTable(Lnet/minecraft/nbt/NbtCompound;)Z
    • writeLootTable

      default boolean writeLootTable(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official d_ Lbji;d_(Lsd;)Z
      intermediary method_54872 Lnet/minecraft/class_8934;method_54872(Lnet/minecraft/class_2487;)Z
      named writeLootTable Lnet/minecraft/inventory/LootableInventory;writeLootTable(Lnet/minecraft/nbt/NbtCompound;)Z
    • generateLoot

      default void generateLoot(@Nullable @Nullable PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official e_ Lbji;e_(Lcdz;)V
      intermediary method_54873 Lnet/minecraft/class_8934;method_54873(Lnet/minecraft/class_1657;)V
      named generateLoot Lnet/minecraft/inventory/LootableInventory;generateLoot(Lnet/minecraft/entity/player/PlayerEntity;)V