Search in sources :

Example 1 with FuelRegistry

use of net.fabricmc.fabric.api.registry.FuelRegistry in project bewitchment by MoriyaShiine.

the class BWObjects method init.

public static void init() {
    BLOCKS.keySet().forEach(block -> Registry.register(Registry.BLOCK, BLOCKS.get(block), block));
    ITEMS.keySet().forEach(item -> Registry.register(Registry.ITEM, ITEMS.get(item), item));
    FuelRegistry fuelRegistry = FuelRegistry.INSTANCE;
    fuelRegistry.add(JUNIPER_FENCE, 300);
    fuelRegistry.add(JUNIPER_FENCE_GATE, 300);
    fuelRegistry.add(CYPRESS_FENCE, 300);
    fuelRegistry.add(CYPRESS_FENCE_GATE, 300);
    fuelRegistry.add(ELDER_FENCE, 300);
    fuelRegistry.add(ELDER_FENCE_GATE, 300);
    fuelRegistry.add(DRAGONS_BLOOD_FENCE, 300);
    fuelRegistry.add(DRAGONS_BLOOD_FENCE_GATE, 300);
    fuelRegistry.add(BWTags.BARKS, 100);
    fuelRegistry.add(SCORCHED_BRAMBLE, 800);
    FlammableBlockRegistry flammableRegistry = FlammableBlockRegistry.getDefaultInstance();
    flammableRegistry.add(STRIPPED_JUNIPER_LOG, 5, 5);
    flammableRegistry.add(STRIPPED_JUNIPER_WOOD, 5, 5);
    flammableRegistry.add(JUNIPER_LOG, 5, 5);
    flammableRegistry.add(JUNIPER_WOOD, 5, 5);
    flammableRegistry.add(JUNIPER_LEAVES, 30, 60);
    flammableRegistry.add(JUNIPER_PLANKS, 5, 20);
    flammableRegistry.add(JUNIPER_STAIRS, 5, 20);
    flammableRegistry.add(JUNIPER_SLAB, 5, 20);
    flammableRegistry.add(JUNIPER_FENCE, 5, 20);
    flammableRegistry.add(JUNIPER_FENCE_GATE, 5, 20);
    flammableRegistry.add(STRIPPED_CYPRESS_LOG, 5, 5);
    flammableRegistry.add(STRIPPED_CYPRESS_WOOD, 5, 5);
    flammableRegistry.add(CYPRESS_LOG, 5, 5);
    flammableRegistry.add(CYPRESS_WOOD, 5, 5);
    flammableRegistry.add(CYPRESS_LEAVES, 30, 60);
    flammableRegistry.add(CYPRESS_PLANKS, 5, 20);
    flammableRegistry.add(CYPRESS_STAIRS, 5, 20);
    flammableRegistry.add(CYPRESS_SLAB, 5, 20);
    flammableRegistry.add(CYPRESS_FENCE, 5, 20);
    flammableRegistry.add(CYPRESS_FENCE_GATE, 5, 20);
    flammableRegistry.add(STRIPPED_ELDER_LOG, 5, 5);
    flammableRegistry.add(STRIPPED_ELDER_WOOD, 5, 5);
    flammableRegistry.add(ELDER_LOG, 5, 5);
    flammableRegistry.add(ELDER_WOOD, 5, 5);
    flammableRegistry.add(ELDER_LEAVES, 30, 60);
    flammableRegistry.add(ELDER_PLANKS, 5, 20);
    flammableRegistry.add(ELDER_STAIRS, 5, 20);
    flammableRegistry.add(ELDER_SLAB, 5, 20);
    flammableRegistry.add(ELDER_FENCE, 5, 20);
    flammableRegistry.add(ELDER_FENCE_GATE, 5, 20);
    flammableRegistry.add(STRIPPED_DRAGONS_BLOOD_LOG, 5, 5);
    flammableRegistry.add(STRIPPED_DRAGONS_BLOOD_WOOD, 5, 5);
    flammableRegistry.add(DRAGONS_BLOOD_LOG, 5, 5);
    flammableRegistry.add(DRAGONS_BLOOD_WOOD, 5, 5);
    flammableRegistry.add(DRAGONS_BLOOD_LEAVES, 30, 60);
    flammableRegistry.add(DRAGONS_BLOOD_PLANKS, 5, 20);
    flammableRegistry.add(DRAGONS_BLOOD_STAIRS, 5, 20);
    flammableRegistry.add(DRAGONS_BLOOD_SLAB, 5, 20);
    flammableRegistry.add(DRAGONS_BLOOD_FENCE, 5, 20);
    flammableRegistry.add(DRAGONS_BLOOD_FENCE_GATE, 5, 20);
    flammableRegistry.add(HEDGEWITCH_WOOL, 30, 60);
    flammableRegistry.add(ALCHEMIST_WOOL, 30, 60);
    flammableRegistry.add(BESMIRCHED_WOOL, 30, 60);
    flammableRegistry.add(HEDGEWITCH_CARPET, 60, 20);
    flammableRegistry.add(ALCHEMIST_CARPET, 60, 20);
    flammableRegistry.add(BESMIRCHED_CARPET, 60, 20);
    CompostingChanceRegistry compostRegistry = CompostingChanceRegistry.INSTANCE;
    compostRegistry.add(JUNIPER_LEAVES, 0.3f);
    compostRegistry.add(JUNIPER_SAPLING, 0.3f);
    compostRegistry.add(CYPRESS_LEAVES, 0.3f);
    compostRegistry.add(CYPRESS_SAPLING, 0.3f);
    compostRegistry.add(ELDER_LEAVES, 0.3f);
    compostRegistry.add(ELDER_SAPLING, 0.3f);
    compostRegistry.add(DRAGONS_BLOOD_LEAVES, 0.3f);
    compostRegistry.add(DRAGONS_BLOOD_SAPLING, 0.3f);
    compostRegistry.add(ACONITE, 0.65f);
    compostRegistry.add(ACONITE_SEEDS, 0.3f);
    compostRegistry.add(BELLADONNA, 0.65f);
    compostRegistry.add(BELLADONNA_SEEDS, 0.3f);
    compostRegistry.add(GARLIC, 0.65f);
    compostRegistry.add(MANDRAKE_ROOT, 0.65f);
    compostRegistry.add(MANDRAKE_SEEDS, 0.3f);
    compostRegistry.add(WOOD_ASH, 0.3f);
    compostRegistry.add(DRAGONS_BLOOD_RESIN, 0.65f);
    compostRegistry.add(GRILLED_GARLIC, 0.85f);
    compostRegistry.add(GARLIC_BREAD, 1f);
    compostRegistry.add(WITCHBERRY, 0.65f);
    compostRegistry.add(WITCHBERRY_PIE, 1f);
    compostRegistry.add(WITCHBERRY_COOKIE, 0.85f);
}
Also used : FuelRegistry(net.fabricmc.fabric.api.registry.FuelRegistry) FlammableBlockRegistry(net.fabricmc.fabric.api.registry.FlammableBlockRegistry) CompostingChanceRegistry(net.fabricmc.fabric.api.registry.CompostingChanceRegistry)

Example 2 with FuelRegistry

use of net.fabricmc.fabric.api.registry.FuelRegistry in project Fabric-Course-118 by Kaupenjoe.

the class ModRegistries method registerFuels.

private static void registerFuels() {
    System.out.println("Registering Fuels for + " + MCCourseMod.MOD_ID);
    FuelRegistry registry = FuelRegistry.INSTANCE;
    // 400 / 20 = 20 Seconds
    registry.add(ModItems.COAL_SLIVER, 400);
}
Also used : FuelRegistry(net.fabricmc.fabric.api.registry.FuelRegistry)

Aggregations

FuelRegistry (net.fabricmc.fabric.api.registry.FuelRegistry)2 CompostingChanceRegistry (net.fabricmc.fabric.api.registry.CompostingChanceRegistry)1 FlammableBlockRegistry (net.fabricmc.fabric.api.registry.FlammableBlockRegistry)1