mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-11 21:14:19 +01:00
903ad95bf0
+ Added the Handheld Blockzapper Tool + Added several craftable upgrades for the Tool + Added animated Models for Symmetry wand and Handheld Blockzapper - Schematicannon now uses two items for Double Slabs - Fixed Warn messages for client packets - Added misc Crafting Ingredients - Changed recipe unlock triggers
31 lines
920 B
Java
31 lines
920 B
Java
package com.simibubi.create;
|
|
|
|
import java.util.function.Supplier;
|
|
|
|
import com.simibubi.create.modules.curiosities.placementHandgun.BuilderGunUpgradeRecipe;
|
|
|
|
import net.minecraft.item.crafting.IRecipeSerializer;
|
|
import net.minecraft.util.ResourceLocation;
|
|
import net.minecraftforge.event.RegistryEvent;
|
|
|
|
public enum AllRecipes {
|
|
|
|
Placement_Handgun_Upgrade(BuilderGunUpgradeRecipe.Serializer::new);
|
|
|
|
public IRecipeSerializer<?> serializer;
|
|
public Supplier<IRecipeSerializer<?>> supplier;
|
|
|
|
private AllRecipes(Supplier<IRecipeSerializer<?>> supplier) {
|
|
this.supplier = supplier;
|
|
}
|
|
|
|
public static void register(RegistryEvent.Register<IRecipeSerializer<?>> event) {
|
|
for (AllRecipes r : AllRecipes.values()) {
|
|
r.serializer = r.supplier.get();
|
|
ResourceLocation location = new ResourceLocation(Create.ID, r.name().toLowerCase());
|
|
event.getRegistry().register(r.serializer.setRegistryName(location));
|
|
}
|
|
}
|
|
|
|
}
|