Package net.minecraft.inventory
Interface LootableInventory
- All Known Implementing Classes:
BarrelBlockEntity,ChestBlockEntity,CrafterBlockEntity,DecoratedPotBlockEntity,DispenserBlockEntity,DropperBlockEntity,HopperBlockEntity,LootableContainerBlockEntity,ShulkerBoxBlockEntity,TrappedChestBlockEntity
- Mappings:
Namespace Name official bjiintermediary net/minecraft/class_8934named net/minecraft/inventory/LootableInventory
-
Field Summary
FieldsFields inherited from interface net.minecraft.inventory.Inventory
field_42619, MAX_COUNT_PER_STACK -
Method Summary
Modifier and TypeMethodDescriptiondefault voidgenerateLoot(@Nullable PlayerEntity player) longgetPos()getWorld()default booleanreadLootTable(NbtCompound nbt) voidsetLootTable(@Nullable Identifier lootTableId) default voidsetLootTable(Identifier lootTableId, long lootTableSeed) static voidsetLootTable(BlockView world, Random random, BlockPos pos, Identifier lootTableId) voidsetLootTableSeed(long lootTableSeed) default booleanMethods inherited from interface net.minecraft.inventory.Inventory
canPlayerUse, canTransferTo, containsAny, containsAny, count, getMaxCountPerStack, getStack, isEmpty, isValid, markDirty, onClose, onOpen, removeStack, removeStack, setStack, size
-
Field Details
-
LOOT_TABLE_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official cLbji;c:Ljava/lang/String;intermediary field_47154Lnet/minecraft/class_8934;field_47154:Ljava/lang/String;named LOOT_TABLE_KEYLnet/minecraft/inventory/LootableInventory;LOOT_TABLE_KEY:Ljava/lang/String;
-
LOOT_TABLE_SEED_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official dLbji;d:Ljava/lang/String;intermediary field_47155Lnet/minecraft/class_8934;field_47155:Ljava/lang/String;named LOOT_TABLE_SEED_KEYLnet/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_54869Lnet/minecraft/class_8934;method_54869()Lnet/minecraft/class_2960;named getLootTableLnet/minecraft/inventory/LootableInventory;getLootTable()Lnet/minecraft/util/Identifier;
-
setLootTable
- Mappings:
Namespace Name Mixin selector official aLbji;a(Lagm;)Vintermediary method_11285Lnet/minecraft/class_8934;method_11285(Lnet/minecraft/class_2960;)Vnamed setLootTableLnet/minecraft/inventory/LootableInventory;setLootTable(Lnet/minecraft/util/Identifier;)V
-
setLootTable
- Mappings:
Namespace Name Mixin selector official aLbji;a(Lagm;J)Vintermediary method_54867Lnet/minecraft/class_8934;method_54867(Lnet/minecraft/class_2960;J)Vnamed setLootTableLnet/minecraft/inventory/LootableInventory;setLootTable(Lnet/minecraft/util/Identifier;J)V
-
getLootTableSeed
long getLootTableSeed()- Mappings:
Namespace Name Mixin selector official aB_Lbji;aB_()Jintermediary method_54870Lnet/minecraft/class_8934;method_54870()Jnamed getLootTableSeedLnet/minecraft/inventory/LootableInventory;getLootTableSeed()J
-
setLootTableSeed
void setLootTableSeed(long lootTableSeed) - Mappings:
Namespace Name Mixin selector official aLbji;a(J)Vintermediary method_54866Lnet/minecraft/class_8934;method_54866(J)Vnamed setLootTableSeedLnet/minecraft/inventory/LootableInventory;setLootTableSeed(J)V
-
getPos
BlockPos getPos()- Mappings:
Namespace Name Mixin selector official aC_Lbji;aC_()Lhx;intermediary method_11016Lnet/minecraft/class_8934;method_11016()Lnet/minecraft/class_2338;named getPosLnet/minecraft/inventory/LootableInventory;getPos()Lnet/minecraft/util/math/BlockPos;
-
getWorld
- Mappings:
Namespace Name Mixin selector official iLbji;i()Lcsf;intermediary method_10997Lnet/minecraft/class_8934;method_10997()Lnet/minecraft/class_1937;named getWorldLnet/minecraft/inventory/LootableInventory;getWorld()Lnet/minecraft/world/World;
-
setLootTable
- Mappings:
Namespace Name Mixin selector official aLbji;a(Lcrl;Latw;Lhx;Lagm;)Vintermediary method_54868Lnet/minecraft/class_8934;method_54868(Lnet/minecraft/class_1922;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;Lnet/minecraft/class_2960;)Vnamed setLootTableLnet/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
- Mappings:
Namespace Name Mixin selector official c_Lbji;c_(Lsd;)Zintermediary method_54871Lnet/minecraft/class_8934;method_54871(Lnet/minecraft/class_2487;)Znamed readLootTableLnet/minecraft/inventory/LootableInventory;readLootTable(Lnet/minecraft/nbt/NbtCompound;)Z
-
writeLootTable
- Mappings:
Namespace Name Mixin selector official d_Lbji;d_(Lsd;)Zintermediary method_54872Lnet/minecraft/class_8934;method_54872(Lnet/minecraft/class_2487;)Znamed writeLootTableLnet/minecraft/inventory/LootableInventory;writeLootTable(Lnet/minecraft/nbt/NbtCompound;)Z
-
generateLoot
- Mappings:
Namespace Name Mixin selector official e_Lbji;e_(Lcdz;)Vintermediary method_54873Lnet/minecraft/class_8934;method_54873(Lnet/minecraft/class_1657;)Vnamed generateLootLnet/minecraft/inventory/LootableInventory;generateLoot(Lnet/minecraft/entity/player/PlayerEntity;)V
-