Skip to content

Package net.minecraft.data.loot.packs

Part 1/1


TradeRebalanceChestLoot

  • Full name: net.minecraft.data.loot.packs.TradeRebalanceChestLoot
  • Package: net.minecraft.data.loot.packs
  • Source: commonnet/minecraft/data/loot/packs/TradeRebalanceChestLoot.java
  • Type: record
  • Modifiers: public
  • Implements: LootTableSubProvider

net.minecraft.data.loot.packs.TradeRebalanceChestLoot#ancientCityLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/TradeRebalanceChestLoot.java:180
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ ancientCityLootTable ตาม implementation ของ TradeRebalanceChestLoot

ทำงานยังไง

เรียกต่อ: lookupOrThrow(), lootTable(), withPool(), lootPool(), setRolls(), between(), add(), lootTableItem(). สร้างออบเจ็กต์: EnchantRandomlyFunction.Builder.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TradeRebalanceChestLoot instance = ...;
LootTable.Builder result = instance.ancientCityLootTable();

net.minecraft.data.loot.packs.TradeRebalanceChestLoot#desertPyramidLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/TradeRebalanceChestLoot.java:136
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ desertPyramidLootTable ตาม implementation ของ TradeRebalanceChestLoot

ทำงานยังไง

เรียกต่อ: lookupOrThrow(), lootTable(), withPool(), lootPool(), setRolls(), between(), add(), lootTableItem(). สร้างออบเจ็กต์: EnchantRandomlyFunction.Builder.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TradeRebalanceChestLoot instance = ...;
LootTable.Builder result = instance.desertPyramidLootTable();

net.minecraft.data.loot.packs.TradeRebalanceChestLoot#generate(BiConsumer<ResourceKey<LootTable>, LootTable.Builder>)

  • Origin: common
  • Source: net/minecraft/data/loot/packs/TradeRebalanceChestLoot.java:29
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ generate ตาม implementation ของ TradeRebalanceChestLoot

ทำงานยังไง

เรียกต่อ: lookupOrThrow(), accept(), lootTable(), withPool(), lootPool(), setRolls(), exactly(), add(). สร้างออบเจ็กต์: EnchantRandomlyFunction.Builder.

Parameters

  • BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer

ตัวอย่างใช้งาน

TradeRebalanceChestLoot instance = ...;
BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer = ...;
instance.generate(biConsumer);

net.minecraft.data.loot.packs.TradeRebalanceChestLoot#jungleTempleLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/TradeRebalanceChestLoot.java:252
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ jungleTempleLootTable ตาม implementation ของ TradeRebalanceChestLoot

ทำงานยังไง

เรียกต่อ: lookupOrThrow(), lootTable(), withPool(), lootPool(), setRolls(), between(), add(), lootTableItem(). สร้างออบเจ็กต์: EnchantRandomlyFunction.Builder.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TradeRebalanceChestLoot instance = ...;
LootTable.Builder result = instance.jungleTempleLootTable();

net.minecraft.data.loot.packs.TradeRebalanceChestLoot#pillagerOutpostLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/TradeRebalanceChestLoot.java:86
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ pillagerOutpostLootTable ตาม implementation ของ TradeRebalanceChestLoot

ทำงานยังไง

เรียกต่อ: lookupOrThrow(), lootTable(), withPool(), lootPool(), setRolls(), between(), add(), lootTableItem(). สร้างออบเจ็กต์: EnchantRandomlyFunction.Builder.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TradeRebalanceChestLoot instance = ...;
LootTable.Builder result = instance.pillagerOutpostLootTable();

TradeRebalanceLootTableProvider

  • Full name: net.minecraft.data.loot.packs.TradeRebalanceLootTableProvider
  • Package: net.minecraft.data.loot.packs
  • Source: commonnet/minecraft/data/loot/packs/TradeRebalanceLootTableProvider.java
  • Type: class
  • Modifiers: public

net.minecraft.data.loot.packs.TradeRebalanceLootTableProvider#create(PackOutput,CompletableFuture<HolderLookup.Provider>)

  • Origin: common
  • Source: net/minecraft/data/loot/packs/TradeRebalanceLootTableProvider.java:12
  • Modifiers: public static
  • Return: LootTableProvider

คืออะไร

สร้าง create

ทำงานยังไง

เรียกต่อ: of(), SubProviderEntry(). สร้างออบเจ็กต์: LootTableProvider, LootTableProvider.SubProviderEntry.

Parameters

  • PackOutput packOutput
  • CompletableFuture<HolderLookup.Provider> completableFuture

ตัวอย่างใช้งาน

PackOutput packOutput = ...;
CompletableFuture<HolderLookup.Provider> completableFuture = ...;
LootTableProvider result = TradeRebalanceLootTableProvider.create(packOutput, completableFuture);

VanillaArchaeologyLoot

  • Full name: net.minecraft.data.loot.packs.VanillaArchaeologyLoot
  • Package: net.minecraft.data.loot.packs
  • Source: commonnet/minecraft/data/loot/packs/VanillaArchaeologyLoot.java
  • Type: record
  • Modifiers: public
  • Implements: LootTableSubProvider

net.minecraft.data.loot.packs.VanillaArchaeologyLoot#generate(BiConsumer<ResourceKey<LootTable>, LootTable.Builder>)

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaArchaeologyLoot.java:18
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ generate ตาม implementation ของ VanillaArchaeologyLoot

ทำงานยังไง

เรียกต่อ: accept(), lootTable(), withPool(), lootPool(), setRolls(), exactly(), add(), lootTableItem().

Parameters

  • BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer

ตัวอย่างใช้งาน

VanillaArchaeologyLoot instance = ...;
BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer = ...;
instance.generate(biConsumer);

VanillaBlockLoot

  • Full name: net.minecraft.data.loot.packs.VanillaBlockLoot
  • Package: net.minecraft.data.loot.packs
  • Source: commonnet/minecraft/data/loot/packs/VanillaBlockLoot.java
  • Type: class
  • Modifiers: public
  • Extends: BlockLootSubProvider

net.minecraft.data.loot.packs.VanillaBlockLoot#generate()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaBlockLoot.java:100
  • Modifiers: protected
  • Return: void

คืออะไร

ดำเนินการ generate ตาม implementation ของ VanillaBlockLoot

ทำงานยังไง

เรียกต่อ: lookupOrThrow(), dropSelf(), add(), noDrop(), dropWhenSilkTouch(), createMultifaceBlockDrops(), hasSilkTouch(), createPetalsDrops().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

@Override
protected void generate() {
    super.generate();
}

net.minecraft.data.loot.packs.VanillaBlockLoot#VanillaBlockLoot(HolderLookup.Provider)

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaBlockLoot.java:96
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ VanillaBlockLoot ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: allFlags().

Parameters

  • HolderLookup.Provider provider

ตัวอย่างใช้งาน

HolderLookup.Provider provider = ...;
VanillaBlockLoot instance = new VanillaBlockLoot(provider);

VanillaChestLoot

  • Full name: net.minecraft.data.loot.packs.VanillaChestLoot
  • Package: net.minecraft.data.loot.packs
  • Source: commonnet/minecraft/data/loot/packs/VanillaChestLoot.java
  • Type: record
  • Modifiers: public
  • Implements: LootTableSubProvider

net.minecraft.data.loot.packs.VanillaChestLoot#ancientCityLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1831
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ ancientCityLootTable ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lookupOrThrow(), lootTable(), withPool(), lootPool(), setRolls(), between(), add(), lootTableItem(). สร้างออบเจ็กต์: EnchantRandomlyFunction.Builder.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
LootTable.Builder result = instance.ancientCityLootTable();

net.minecraft.data.loot.packs.VanillaChestLoot#bastionBridgeLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1385
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ bastionBridgeLootTable ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), setRolls(), exactly(), add(), lootTableItem(), apply().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
LootTable.Builder result = instance.bastionBridgeLootTable();

net.minecraft.data.loot.packs.VanillaChestLoot#bastionHoglinStableLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1323
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ bastionHoglinStableLootTable ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), setRolls(), exactly(), add(), lootTableItem(), setWeight().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
LootTable.Builder result = instance.bastionHoglinStableLootTable();

net.minecraft.data.loot.packs.VanillaChestLoot#bastionOtherLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1644
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ bastionOtherLootTable ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lookupOrThrow(), lootTable(), withPool(), lootPool(), setRolls(), exactly(), add(), lootTableItem(). สร้างออบเจ็กต์: EnchantRandomlyFunction.Builder.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
LootTable.Builder result = instance.bastionOtherLootTable();

net.minecraft.data.loot.packs.VanillaChestLoot#bastionTreasureLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1575
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ bastionTreasureLootTable ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), setRolls(), exactly(), add(), lootTableItem(), setWeight().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
LootTable.Builder result = instance.bastionTreasureLootTable();

net.minecraft.data.loot.packs.VanillaChestLoot#desertPyramidLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1989
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ desertPyramidLootTable ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), setRolls(), between(), add(), lootTableItem(), setWeight().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
LootTable.Builder result = instance.desertPyramidLootTable();

net.minecraft.data.loot.packs.VanillaChestLoot#endCityTreasureLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1456
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ endCityTreasureLootTable ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), setRolls(), between(), add(), lootTableItem(), setWeight().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
LootTable.Builder result = instance.endCityTreasureLootTable();

net.minecraft.data.loot.packs.VanillaChestLoot#generate(BiConsumer<ResourceKey<LootTable>, LootTable.Builder>)

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:41
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ generate ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lookupOrThrow(), accept(), lootTable(), withPool(), lootPool(), setRolls(), exactly(), add(). สร้างออบเจ็กต์: EnchantRandomlyFunction.Builder, SetEnchantmentsFunction.Builder.

Parameters

  • BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer = ...;
instance.generate(biConsumer);

net.minecraft.data.loot.packs.VanillaChestLoot#jungleTempleLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1898
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ jungleTempleLootTable ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), setRolls(), between(), add(), lootTableItem(), setWeight().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
LootTable.Builder result = instance.jungleTempleLootTable();

net.minecraft.data.loot.packs.VanillaChestLoot#netherBridgeLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1549
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ netherBridgeLootTable ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), setRolls(), between(), add(), lootTableItem(), setWeight().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
LootTable.Builder result = instance.netherBridgeLootTable();

net.minecraft.data.loot.packs.VanillaChestLoot#pillagerOutpostLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1950
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ pillagerOutpostLootTable ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), setRolls(), between(), add(), lootTableItem(), setWeight().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
LootTable.Builder result = instance.pillagerOutpostLootTable();

net.minecraft.data.loot.packs.VanillaChestLoot#shipwreckMapLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1288
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ shipwreckMapLootTable ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), setRolls(), exactly(), add(), lootTableItem(), apply().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
LootTable.Builder result = instance.shipwreckMapLootTable();

net.minecraft.data.loot.packs.VanillaChestLoot#shipwreckSupplyLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1245
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ shipwreckSupplyLootTable ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), setRolls(), between(), add(), lootTableItem(), setWeight().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
LootTable.Builder result = instance.shipwreckSupplyLootTable();

net.minecraft.data.loot.packs.VanillaChestLoot#shipwreckTreasureLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1924
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ shipwreckTreasureLootTable ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), setRolls(), between(), add(), lootTableItem(), setWeight().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
LootTable.Builder result = instance.shipwreckTreasureLootTable();

net.minecraft.data.loot.packs.VanillaChestLoot#spawnerLootTables(BiConsumer<ResourceKey<LootTable>, LootTable.Builder>)

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1133
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ spawnerLootTables ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lookupOrThrow(), accept(), lootTable(), withPool(), lootPool(), setRolls(), exactly(), add().

Parameters

  • BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer = ...;
instance.spawnerLootTables(biConsumer);

net.minecraft.data.loot.packs.VanillaChestLoot#strongholdCorridorLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1797
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ strongholdCorridorLootTable ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), setRolls(), between(), add(), lootTableItem(), setWeight().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
LootTable.Builder result = instance.strongholdCorridorLootTable();

net.minecraft.data.loot.packs.VanillaChestLoot#strongholdLibraryLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1783
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ strongholdLibraryLootTable ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), setRolls(), between(), add(), lootTableItem(), setWeight().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
LootTable.Builder result = instance.strongholdLibraryLootTable();

net.minecraft.data.loot.packs.VanillaChestLoot#woodlandMansionLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaChestLoot.java:1736
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ woodlandMansionLootTable ตาม implementation ของ VanillaChestLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), setRolls(), between(), add(), lootTableItem(), setWeight().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaChestLoot instance = ...;
LootTable.Builder result = instance.woodlandMansionLootTable();

VanillaEntityLoot

  • Full name: net.minecraft.data.loot.packs.VanillaEntityLoot
  • Package: net.minecraft.data.loot.packs
  • Source: commonnet/minecraft/data/loot/packs/VanillaEntityLoot.java
  • Type: class
  • Modifiers: public
  • Extends: EntityLootSubProvider

net.minecraft.data.loot.packs.VanillaEntityLoot#elderGuardianLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaEntityLoot.java:1134
  • Modifiers: public
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ elderGuardianLootTable ตาม implementation ของ VanillaEntityLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), setRolls(), exactly(), add(), lootTableItem(), apply().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaEntityLoot instance = ...;
LootTable.Builder result = instance.elderGuardianLootTable();

net.minecraft.data.loot.packs.VanillaEntityLoot#generate()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaEntityLoot.java:48
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ generate ตาม implementation ของ VanillaEntityLoot

ทำงานยังไง

เรียกต่อ: lookupOrThrow(), add(), lootTable(), withPool(), lootPool(), setRolls(), exactly(), lootTableItem().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VanillaEntityLoot instance = ...;
instance.generate();

net.minecraft.data.loot.packs.VanillaEntityLoot#VanillaEntityLoot(HolderLookup.Provider)

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaEntityLoot.java:44
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ VanillaEntityLoot ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: allFlags().

Parameters

  • HolderLookup.Provider provider

ตัวอย่างใช้งาน

HolderLookup.Provider provider = ...;
VanillaEntityLoot instance = new VanillaEntityLoot(provider);

VanillaEquipmentLoot

  • Full name: net.minecraft.data.loot.packs.VanillaEquipmentLoot
  • Package: net.minecraft.data.loot.packs
  • Source: commonnet/minecraft/data/loot/packs/VanillaEquipmentLoot.java
  • Type: record
  • Modifiers: public
  • Implements: LootTableSubProvider

net.minecraft.data.loot.packs.VanillaEquipmentLoot#generate(BiConsumer<ResourceKey<LootTable>, LootTable.Builder>)

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaEquipmentLoot.java:29
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ generate ตาม implementation ของ VanillaEquipmentLoot

ทำงานยังไง

เรียกต่อ: lookupOrThrow(), getOrThrow(), accept(), lootTable(), withPool(), lootPool(), setRolls(), exactly(). สร้างออบเจ็กต์: ArmorTrim, SetEnchantmentsFunction.Builder.

Parameters

  • BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer

ตัวอย่างใช้งาน

VanillaEquipmentLoot instance = ...;
BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer = ...;
instance.generate(biConsumer);

net.minecraft.data.loot.packs.VanillaEquipmentLoot#trialChamberEquipment(Item,Item,ArmorTrim,HolderLookup.RegistryLookup<Enchantment>)

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaEquipmentLoot.java:91
  • Modifiers: public static
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ trialChamberEquipment ตาม implementation ของ VanillaEquipmentLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), setRolls(), exactly(), when(), randomChance(), add(). สร้างออบเจ็กต์: SetEnchantmentsFunction.Builder.

Parameters

  • Item item
  • Item item2
  • ArmorTrim armorTrim
  • HolderLookup.RegistryLookup<Enchantment> registryLookup

ตัวอย่างใช้งาน

Item item = ...;
Item item2 = ...;
ArmorTrim armorTrim = ...;
HolderLookup.RegistryLookup<Enchantment> registryLookup = ...;
LootTable.Builder result = VanillaEquipmentLoot.trialChamberEquipment(item, item2, armorTrim, registryLookup);

VanillaFishingLoot

  • Full name: net.minecraft.data.loot.packs.VanillaFishingLoot
  • Package: net.minecraft.data.loot.packs
  • Source: commonnet/minecraft/data/loot/packs/VanillaFishingLoot.java
  • Type: record
  • Modifiers: public
  • Implements: LootTableSubProvider

net.minecraft.data.loot.packs.VanillaFishingLoot#fishingFishLootTable()

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaFishingLoot.java:113
  • Modifiers: public static
  • Return: LootTable.Builder

คืออะไร

ดำเนินการ fishingFishLootTable ตาม implementation ของ VanillaFishingLoot

ทำงานยังไง

เรียกต่อ: lootTable(), withPool(), lootPool(), add(), lootTableItem(), setWeight().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

LootTable.Builder result = VanillaFishingLoot.fishingFishLootTable();

net.minecraft.data.loot.packs.VanillaFishingLoot#generate(BiConsumer<ResourceKey<LootTable>, LootTable.Builder>)

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaFishingLoot.java:33
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ generate ตาม implementation ของ VanillaFishingLoot

ทำงานยังไง

เรียกต่อ: lookupOrThrow(), accept(), lootTable(), withPool(), lootPool(), setRolls(), exactly(), add().

Parameters

  • BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer

ตัวอย่างใช้งาน

VanillaFishingLoot instance = ...;
BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer = ...;
instance.generate(biConsumer);

VanillaGiftLoot

  • Full name: net.minecraft.data.loot.packs.VanillaGiftLoot
  • Package: net.minecraft.data.loot.packs
  • Source: commonnet/minecraft/data/loot/packs/VanillaGiftLoot.java
  • Type: record
  • Modifiers: public
  • Implements: LootTableSubProvider

net.minecraft.data.loot.packs.VanillaGiftLoot#generate(BiConsumer<ResourceKey<LootTable>, LootTable.Builder>)

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaGiftLoot.java:20
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ generate ตาม implementation ของ VanillaGiftLoot

ทำงานยังไง

เรียกต่อ: accept(), lootTable(), withPool(), lootPool(), setRolls(), exactly(), add(), lootTableItem().

Parameters

  • BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer

ตัวอย่างใช้งาน

VanillaGiftLoot instance = ...;
BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer = ...;
instance.generate(biConsumer);

VanillaLootTableProvider

  • Full name: net.minecraft.data.loot.packs.VanillaLootTableProvider
  • Package: net.minecraft.data.loot.packs
  • Source: commonnet/minecraft/data/loot/packs/VanillaLootTableProvider.java
  • Type: class
  • Modifiers: public

net.minecraft.data.loot.packs.VanillaLootTableProvider#create(PackOutput,CompletableFuture<HolderLookup.Provider>)

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaLootTableProvider.java:12
  • Modifiers: public static
  • Return: LootTableProvider

คืออะไร

สร้าง create

ทำงานยังไง

เรียกต่อ: all(), of(), SubProviderEntry(). สร้างออบเจ็กต์: LootTableProvider, LootTableProvider.SubProviderEntry.

Parameters

  • PackOutput packOutput
  • CompletableFuture<HolderLookup.Provider> completableFuture

ตัวอย่างใช้งาน

PackOutput packOutput = ...;
CompletableFuture<HolderLookup.Provider> completableFuture = ...;
LootTableProvider result = VanillaLootTableProvider.create(packOutput, completableFuture);

VanillaPiglinBarterLoot

  • Full name: net.minecraft.data.loot.packs.VanillaPiglinBarterLoot
  • Package: net.minecraft.data.loot.packs
  • Source: commonnet/minecraft/data/loot/packs/VanillaPiglinBarterLoot.java
  • Type: record
  • Modifiers: public
  • Implements: LootTableSubProvider

net.minecraft.data.loot.packs.VanillaPiglinBarterLoot#generate(BiConsumer<ResourceKey<LootTable>, LootTable.Builder>)

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaPiglinBarterLoot.java:23
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ generate ตาม implementation ของ VanillaPiglinBarterLoot

ทำงานยังไง

เรียกต่อ: lookupOrThrow(), accept(), lootTable(), withPool(), lootPool(), setRolls(), exactly(), add(). สร้างออบเจ็กต์: EnchantRandomlyFunction.Builder.

Parameters

  • BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer

ตัวอย่างใช้งาน

VanillaPiglinBarterLoot instance = ...;
BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer = ...;
instance.generate(biConsumer);

VanillaShearingLoot

  • Full name: net.minecraft.data.loot.packs.VanillaShearingLoot
  • Package: net.minecraft.data.loot.packs
  • Source: commonnet/minecraft/data/loot/packs/VanillaShearingLoot.java
  • Type: record
  • Modifiers: public
  • Implements: LootTableSubProvider

net.minecraft.data.loot.packs.VanillaShearingLoot#generate(BiConsumer<ResourceKey<LootTable>, LootTable.Builder>)

  • Origin: common
  • Source: net/minecraft/data/loot/packs/VanillaShearingLoot.java:25
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ generate ตาม implementation ของ VanillaShearingLoot

ทำงานยังไง

เรียกต่อ: accept(), lootTable(), withPool(), lootPool(), setRolls(), exactly(), add(), lootTableItem().

Parameters

  • BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer

ตัวอย่างใช้งาน

VanillaShearingLoot instance = ...;
BiConsumer<ResourceKey<LootTable>, LootTable.Builder> biConsumer = ...;
instance.generate(biConsumer);