28 lines
1.6 KiB
Java
28 lines
1.6 KiB
Java
package com.refinedmods.refinedstorage;
|
|
|
|
import com.refinedmods.refinedstorage.loottable.ControllerLootFunction;
|
|
import com.refinedmods.refinedstorage.loottable.CrafterLootFunction;
|
|
import com.refinedmods.refinedstorage.loottable.PortableGridBlockLootFunction;
|
|
import com.refinedmods.refinedstorage.loottable.StorageBlockLootFunction;
|
|
import net.minecraft.core.Registry;
|
|
import net.minecraft.core.registries.BuiltInRegistries;
|
|
import net.minecraft.resources.ResourceLocation;
|
|
import net.minecraft.world.level.storage.loot.functions.LootItemFunctionType;
|
|
|
|
public final class RSLootFunctions {
|
|
public static LootItemFunctionType STORAGE_BLOCK;
|
|
public static LootItemFunctionType PORTABLE_GRID;
|
|
public static LootItemFunctionType CRAFTER;
|
|
public static LootItemFunctionType CONTROLLER;
|
|
|
|
private RSLootFunctions() {
|
|
}
|
|
|
|
public static void register() {
|
|
STORAGE_BLOCK = Registry.register(BuiltInRegistries.LOOT_FUNCTION_TYPE, new ResourceLocation(RS.ID, "storage_block"), new LootItemFunctionType(new StorageBlockLootFunction.Serializer()));
|
|
PORTABLE_GRID = Registry.register(BuiltInRegistries.LOOT_FUNCTION_TYPE, new ResourceLocation(RS.ID, "portable_grid"), new LootItemFunctionType(new PortableGridBlockLootFunction.Serializer()));
|
|
CRAFTER = Registry.register(BuiltInRegistries.LOOT_FUNCTION_TYPE, new ResourceLocation(RS.ID, "crafter"), new LootItemFunctionType(new CrafterLootFunction.Serializer()));
|
|
CONTROLLER = Registry.register(BuiltInRegistries.LOOT_FUNCTION_TYPE, new ResourceLocation(RS.ID, "controller"), new LootItemFunctionType(new ControllerLootFunction.Serializer()));
|
|
}
|
|
}
|