Here's an example Lootprovider class. The class is abstract and will be extended by the actual lootprovider class. This is however, optional. The class could also be used directly.
+
Here's an example Lootprovider class for blocks. The class is abstract and will be extended by the actual lootprovider class. This is however, optional. The class could also be used directly.
<syntaxhighlight lang="java">
<syntaxhighlight lang="java">
public abstract class BaseLootTableProvider extends LootTableProvider {
public abstract class BaseLootTableProvider extends LootTableProvider {