VanillaEntityInteractLoot .java

net.minecraft.data.loot.packs.VanillaEntityInteractLoot (class): members: output, run. imports: LootTableSubProvider, LootItem, LootPool, LootTable.

net.minecraft.data.loot.packsclass27 linescommon953 B

Implements

API Surface (1)

void run()

Fields & Constants (1)

output

Code Graph: Dependencies (7)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

VanillaEntityInteractLoot.java27 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.data.loot.packs;
2
3
import net.minecraft.data.loot.LootTableSubProvider;
4
import net.minecraft.world.item.Items;
5
import net.minecraft.world.level.storage.loot.BuiltInLootTables;
6
import net.minecraft.world.level.storage.loot.LootPool;
7
import net.minecraft.world.level.storage.loot.LootTable;
8
import net.minecraft.world.level.storage.loot.entries.LootItem;
9
import net.minecraft.world.level.storage.loot.providers.number.ints.ContextIntProviders;
10
11
public class VanillaEntityInteractLoot implements LootTableSubProvider {
12
	private final LootTableSubProvider.Context output;
13
14
	public VanillaEntityInteractLoot(final LootTableSubProvider.Context output) {
15
		this.output = output;
16
	}
17
18
	@Override
19
	public void run() {
20
		this.output
21
			.accept(
22
				BuiltInLootTables.ARMADILLO_BRUSH,
23
				LootTable.lootTable().withPool(LootPool.lootPool().setRolls(ContextIntProviders.exactly(1)).add(LootItem.lootTableItem(Items.ARMADILLO_SCUTE)))
24
			);
25
	}
26
}
27

Decompiled Minecraft 26.3 source of VanillaEntityInteractLoot (net/minecraft/data/loot/packs/VanillaEntityInteractLoot.java) with Mojang official mappings, stored verbatim on the site.