I am trying to simulate the fishing loot, but I can't seem to access the loot table. This is what I currently have:
LootWorldContext lootWorldContext = new LootWorldContext(((ServerWorld) player.getWorld()).toServerWorld(),
null, null, player.getLuck());
List<ItemStack> loot = LootTable.EMPTY.generateLoot(lootWorldContext);
for (ItemStack stack : loot) {
player.giveItemStack(stack);
}
I know LootTables.FISHING_GAMEPLAY exists but it returns a RegistryKey<LootTable>