2020-05-28 01:29:26 +02:00
|
|
|
package com.simibubi.create;
|
|
|
|
|
2021-07-08 20:17:35 +02:00
|
|
|
import static com.simibubi.create.AllTags.forgeItemTag;
|
2020-06-20 16:10:07 +02:00
|
|
|
import static com.simibubi.create.AllTags.AllItemTags.CREATE_INGOTS;
|
|
|
|
import static com.simibubi.create.AllTags.AllItemTags.CRUSHED_ORES;
|
|
|
|
import static com.simibubi.create.AllTags.AllItemTags.NUGGETS;
|
|
|
|
import static com.simibubi.create.AllTags.AllItemTags.PLATES;
|
2020-05-28 01:29:26 +02:00
|
|
|
import static com.simibubi.create.content.AllSections.CURIOSITIES;
|
|
|
|
import static com.simibubi.create.content.AllSections.KINETICS;
|
|
|
|
import static com.simibubi.create.content.AllSections.LOGISTICS;
|
|
|
|
import static com.simibubi.create.content.AllSections.MATERIALS;
|
|
|
|
import static com.simibubi.create.content.AllSections.SCHEMATICS;
|
|
|
|
|
2020-12-04 18:10:07 +01:00
|
|
|
import com.simibubi.create.AllTags.AllItemTags;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.structureMovement.glue.SuperGlueItem;
|
|
|
|
import com.simibubi.create.content.contraptions.components.structureMovement.mounted.MinecartContraptionItem;
|
2020-08-05 22:10:05 +02:00
|
|
|
import com.simibubi.create.content.contraptions.components.structureMovement.train.MinecartCouplingItem;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.goggles.GogglesItem;
|
2021-03-03 02:30:21 +01:00
|
|
|
import com.simibubi.create.content.contraptions.goggles.GogglesModel;
|
2021-06-28 17:02:57 +02:00
|
|
|
import com.simibubi.create.content.contraptions.itemAssembly.SequencedAssemblyItem;
|
2020-07-23 17:41:15 +02:00
|
|
|
import com.simibubi.create.content.contraptions.processing.burner.BlazeBurnerBlockItem;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.contraptions.relays.belt.item.BeltConnectorItem;
|
|
|
|
import com.simibubi.create.content.contraptions.relays.gearbox.VerticalGearboxItem;
|
|
|
|
import com.simibubi.create.content.contraptions.wrench.WrenchItem;
|
|
|
|
import com.simibubi.create.content.contraptions.wrench.WrenchModel;
|
2020-12-18 15:13:57 +01:00
|
|
|
import com.simibubi.create.content.curiosities.BuildersTeaItem;
|
2020-07-19 00:22:14 +02:00
|
|
|
import com.simibubi.create.content.curiosities.ChromaticCompoundColor;
|
|
|
|
import com.simibubi.create.content.curiosities.ChromaticCompoundItem;
|
|
|
|
import com.simibubi.create.content.curiosities.CombustibleItem;
|
|
|
|
import com.simibubi.create.content.curiosities.RefinedRadianceItem;
|
|
|
|
import com.simibubi.create.content.curiosities.ShadowSteelItem;
|
|
|
|
import com.simibubi.create.content.curiosities.TreeFertilizerItem;
|
2021-05-04 03:50:17 +02:00
|
|
|
import com.simibubi.create.content.curiosities.armor.CopperArmorItem;
|
|
|
|
import com.simibubi.create.content.curiosities.armor.CopperBacktankItem;
|
|
|
|
import com.simibubi.create.content.curiosities.armor.DivingBootsItem;
|
|
|
|
import com.simibubi.create.content.curiosities.armor.DivingHelmetItem;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.curiosities.symmetry.SymmetryWandItem;
|
|
|
|
import com.simibubi.create.content.curiosities.symmetry.client.SymmetryWandModel;
|
2021-06-03 01:03:43 +02:00
|
|
|
import com.simibubi.create.content.curiosities.tools.BlueprintItem;
|
2020-06-06 22:36:58 +02:00
|
|
|
import com.simibubi.create.content.curiosities.tools.ExtendoGripItem;
|
|
|
|
import com.simibubi.create.content.curiosities.tools.ExtendoGripModel;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.curiosities.tools.SandPaperItem;
|
|
|
|
import com.simibubi.create.content.curiosities.tools.SandPaperItemRenderer.SandPaperModel;
|
2021-06-26 01:17:35 +02:00
|
|
|
import com.simibubi.create.content.curiosities.weapons.PotatoCannonItem;
|
|
|
|
import com.simibubi.create.content.curiosities.weapons.PotatoCannonModel;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.curiosities.zapper.terrainzapper.WorldshaperItem;
|
|
|
|
import com.simibubi.create.content.curiosities.zapper.terrainzapper.WorldshaperModel;
|
2021-05-26 22:03:06 +02:00
|
|
|
import com.simibubi.create.content.logistics.item.LinkedControllerItem;
|
|
|
|
import com.simibubi.create.content.logistics.item.LinkedControllerModel;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.simibubi.create.content.logistics.item.filter.FilterItem;
|
|
|
|
import com.simibubi.create.content.schematics.item.SchematicAndQuillItem;
|
|
|
|
import com.simibubi.create.content.schematics.item.SchematicItem;
|
|
|
|
import com.simibubi.create.foundation.data.AssetLookup;
|
|
|
|
import com.simibubi.create.foundation.data.CreateRegistrate;
|
2020-12-13 15:17:31 +01:00
|
|
|
import com.simibubi.create.foundation.item.HiddenIngredientItem;
|
2020-12-04 18:10:07 +01:00
|
|
|
import com.simibubi.create.foundation.item.TagDependentIngredientItem;
|
2020-10-14 20:52:38 +02:00
|
|
|
import com.simibubi.create.foundation.item.TooltipHelper;
|
2020-05-28 01:29:26 +02:00
|
|
|
import com.tterrag.registrate.util.entry.ItemEntry;
|
|
|
|
|
2021-05-04 03:50:17 +02:00
|
|
|
import net.minecraft.item.BlockItem;
|
2020-12-18 15:13:57 +01:00
|
|
|
import net.minecraft.item.Food;
|
2020-05-28 01:29:26 +02:00
|
|
|
import net.minecraft.item.Item;
|
|
|
|
import net.minecraft.item.Rarity;
|
2020-07-23 04:34:05 +02:00
|
|
|
import net.minecraft.tags.ITag;
|
2021-05-27 05:13:07 +02:00
|
|
|
import net.minecraft.tags.ItemTags;
|
2020-12-04 18:10:07 +01:00
|
|
|
import net.minecraft.util.ResourceLocation;
|
2020-05-28 01:29:26 +02:00
|
|
|
|
2020-05-28 01:30:14 +02:00
|
|
|
public class AllItems {
|
2020-05-28 01:29:26 +02:00
|
|
|
|
|
|
|
private static final CreateRegistrate REGISTRATE = Create.registrate()
|
2021-06-26 01:17:35 +02:00
|
|
|
.itemGroup(() -> Create.BASE_CREATIVE_TAB);
|
2020-05-28 01:29:26 +02:00
|
|
|
|
|
|
|
// Schematics
|
|
|
|
|
|
|
|
static {
|
|
|
|
REGISTRATE.startSection(MATERIALS);
|
|
|
|
}
|
|
|
|
|
2021-03-09 01:49:49 +01:00
|
|
|
public static final ItemEntry<Item> WHEAT_FLOUR = ingredient("wheat_flour"), DOUGH = ingredient("dough"),
|
|
|
|
CINDER_FLOUR = ingredient("cinder_flour"), POWDERED_OBSIDIAN = ingredient("powdered_obsidian"),
|
|
|
|
ROSE_QUARTZ = ingredient("rose_quartz"), POLISHED_ROSE_QUARTZ = ingredient("polished_rose_quartz"),
|
|
|
|
PROPELLER = ingredient("propeller"), WHISK = ingredient("whisk"), BRASS_HAND = ingredient("brass_hand"),
|
2021-06-28 04:00:24 +02:00
|
|
|
CRAFTER_SLOT_COVER = ingredient("crafter_slot_cover"), ELECTRON_TUBE = ingredient("electron_tube");
|
|
|
|
|
2021-07-06 00:54:24 +02:00
|
|
|
public static final ItemEntry<SequencedAssemblyItem> INCOMPLETE_PRECISION_MECHANISM =
|
|
|
|
REGISTRATE.item("incomplete_precision_mechanism", SequencedAssemblyItem::new)
|
2021-06-28 17:02:57 +02:00
|
|
|
.register();
|
2021-06-28 04:00:24 +02:00
|
|
|
|
2021-07-06 00:54:24 +02:00
|
|
|
public static final ItemEntry<Item> PRECISION_MECHANISM = ingredient("precision_mechanism");
|
2020-05-28 01:29:26 +02:00
|
|
|
|
2021-07-05 08:50:52 +02:00
|
|
|
public static final ItemEntry<SequencedAssemblyItem> INCOMPLETE_COGWHEEL =
|
|
|
|
REGISTRATE.item("incomplete_cogwheel", SequencedAssemblyItem::new)
|
|
|
|
.model(AssetLookup.existingItemModel())
|
|
|
|
.register();
|
|
|
|
|
|
|
|
public static final ItemEntry<SequencedAssemblyItem> INCOMPLETE_LARGE_COGWHEEL =
|
|
|
|
REGISTRATE.item("incomplete_large_cogwheel", SequencedAssemblyItem::new)
|
|
|
|
.model(AssetLookup.existingItemModel())
|
|
|
|
.register();
|
|
|
|
|
2020-12-13 15:17:31 +01:00
|
|
|
public static final ItemEntry<HiddenIngredientItem> BLAZE_CAKE_BASE =
|
|
|
|
REGISTRATE.item("blaze_cake_base", HiddenIngredientItem::new)
|
|
|
|
.tag(AllItemTags.UPRIGHT_ON_BELT.tag)
|
|
|
|
.register();
|
|
|
|
|
2020-10-12 21:55:09 +02:00
|
|
|
public static final ItemEntry<CombustibleItem> BLAZE_CAKE = REGISTRATE.item("blaze_cake", CombustibleItem::new)
|
2020-12-13 15:17:31 +01:00
|
|
|
.tag(AllItemTags.UPRIGHT_ON_BELT.tag)
|
2020-10-12 21:55:09 +02:00
|
|
|
.register();
|
|
|
|
|
2020-12-18 15:13:57 +01:00
|
|
|
public static final ItemEntry<Item> BAR_OF_CHOCOLATE = REGISTRATE.item("bar_of_chocolate", Item::new)
|
2021-03-09 01:49:49 +01:00
|
|
|
.properties(p -> p.food(new Food.Builder().hunger(6)
|
|
|
|
.saturation(0.3F)
|
2020-12-18 15:13:57 +01:00
|
|
|
.build()))
|
|
|
|
.lang("Bar of Chocolate")
|
|
|
|
.register();
|
|
|
|
|
2021-03-03 02:30:21 +01:00
|
|
|
public static final ItemEntry<Item> SWEET_ROLL = REGISTRATE.item("sweet_roll", Item::new)
|
|
|
|
.properties(p -> p.food(new Food.Builder().hunger(6)
|
2021-03-09 01:49:49 +01:00
|
|
|
.saturation(0.8F)
|
2021-03-03 02:30:21 +01:00
|
|
|
.build()))
|
|
|
|
.register();
|
|
|
|
|
|
|
|
public static final ItemEntry<Item> CHOCOLATE_BERRIES = REGISTRATE.item("chocolate_glazed_berries", Item::new)
|
|
|
|
.properties(p -> p.food(new Food.Builder().hunger(7)
|
2021-03-09 01:49:49 +01:00
|
|
|
.saturation(0.8F)
|
2021-03-03 02:30:21 +01:00
|
|
|
.build()))
|
|
|
|
.register();
|
|
|
|
|
|
|
|
public static final ItemEntry<Item> HONEYED_APPLE = REGISTRATE.item("honeyed_apple", Item::new)
|
|
|
|
.properties(p -> p.food(new Food.Builder().hunger(8)
|
2021-03-09 01:49:49 +01:00
|
|
|
.saturation(0.8F)
|
2021-03-03 02:30:21 +01:00
|
|
|
.build()))
|
|
|
|
.register();
|
|
|
|
|
2020-12-18 15:13:57 +01:00
|
|
|
public static final ItemEntry<BuildersTeaItem> BUILDERS_TEA = REGISTRATE.item("builders_tea", BuildersTeaItem::new)
|
|
|
|
.tag(AllItemTags.UPRIGHT_ON_BELT.tag)
|
|
|
|
.properties(p -> p.maxStackSize(16))
|
|
|
|
.lang("Builder's Tea")
|
|
|
|
.register();
|
|
|
|
|
2021-03-09 01:49:49 +01:00
|
|
|
public static final ItemEntry<Item> ANDESITE_ALLOY = ingredient("andesite_alloy"),
|
|
|
|
COPPER_INGOT = taggedIngredient("copper_ingot", forgeItemTag("ingots/copper"), CREATE_INGOTS.tag),
|
|
|
|
ZINC_INGOT = taggedIngredient("zinc_ingot", forgeItemTag("ingots/zinc"), CREATE_INGOTS.tag),
|
|
|
|
BRASS_INGOT = taggedIngredient("brass_ingot", forgeItemTag("ingots/brass"), CREATE_INGOTS.tag);
|
|
|
|
|
2020-05-28 01:29:26 +02:00
|
|
|
public static final ItemEntry<ChromaticCompoundItem> CHROMATIC_COMPOUND =
|
2021-06-26 01:17:35 +02:00
|
|
|
REGISTRATE.item("chromatic_compound", ChromaticCompoundItem::new)
|
|
|
|
.properties(p -> p.rarity(Rarity.UNCOMMON))
|
|
|
|
.model(AssetLookup.existingItemModel())
|
|
|
|
.color(() -> ChromaticCompoundColor::new)
|
2020-05-28 01:29:26 +02:00
|
|
|
.register();
|
|
|
|
|
|
|
|
public static final ItemEntry<ShadowSteelItem> SHADOW_STEEL = REGISTRATE.item("shadow_steel", ShadowSteelItem::new)
|
|
|
|
.properties(p -> p.rarity(Rarity.UNCOMMON))
|
|
|
|
.register();
|
|
|
|
|
|
|
|
public static final ItemEntry<RefinedRadianceItem> REFINED_RADIANCE =
|
|
|
|
REGISTRATE.item("refined_radiance", RefinedRadianceItem::new)
|
|
|
|
.properties(p -> p.rarity(Rarity.UNCOMMON))
|
|
|
|
.register();
|
|
|
|
|
2021-03-09 01:49:49 +01:00
|
|
|
public static final ItemEntry<Item> COPPER_NUGGET =
|
|
|
|
taggedIngredient("copper_nugget", forgeItemTag("nuggets/copper"), NUGGETS.tag),
|
|
|
|
ZINC_NUGGET = taggedIngredient("zinc_nugget", forgeItemTag("nuggets/zinc"), NUGGETS.tag),
|
|
|
|
BRASS_NUGGET = taggedIngredient("brass_nugget", forgeItemTag("nuggets/brass"), NUGGETS.tag),
|
|
|
|
|
|
|
|
COPPER_SHEET = taggedIngredient("copper_sheet", forgeItemTag("plates/copper"), PLATES.tag),
|
|
|
|
BRASS_SHEET = taggedIngredient("brass_sheet", forgeItemTag("plates/brass"), PLATES.tag),
|
|
|
|
IRON_SHEET = taggedIngredient("iron_sheet", forgeItemTag("plates/iron"), PLATES.tag),
|
2021-05-27 05:13:07 +02:00
|
|
|
GOLDEN_SHEET = taggedIngredient("golden_sheet", forgeItemTag("plates/gold"), PLATES.tag, ItemTags.PIGLIN_LOVED),
|
2021-03-09 01:49:49 +01:00
|
|
|
|
|
|
|
CRUSHED_IRON = taggedIngredient("crushed_iron_ore", CRUSHED_ORES.tag),
|
2021-05-27 05:13:07 +02:00
|
|
|
CRUSHED_GOLD = taggedIngredient("crushed_gold_ore", CRUSHED_ORES.tag, ItemTags.PIGLIN_LOVED),
|
2021-03-09 01:49:49 +01:00
|
|
|
CRUSHED_COPPER = taggedIngredient("crushed_copper_ore", CRUSHED_ORES.tag),
|
|
|
|
CRUSHED_ZINC = taggedIngredient("crushed_zinc_ore", CRUSHED_ORES.tag),
|
|
|
|
CRUSHED_BRASS = taggedIngredient("crushed_brass", CRUSHED_ORES.tag);
|
2020-05-28 01:29:26 +02:00
|
|
|
|
2021-03-09 01:49:49 +01:00
|
|
|
public static final ItemEntry<TagDependentIngredientItem> CRUSHED_OSMIUM = compatCrushedOre("osmium"),
|
|
|
|
CRUSHED_PLATINUM = compatCrushedOre("platinum"), CRUSHED_SILVER = compatCrushedOre("silver"),
|
|
|
|
CRUSHED_TIN = compatCrushedOre("tin"), CRUSHED_LEAD = compatCrushedOre("lead"),
|
|
|
|
CRUSHED_QUICKSILVER = compatCrushedOre("quicksilver"), CRUSHED_BAUXITE = compatCrushedOre("aluminum"),
|
|
|
|
CRUSHED_URANIUM = compatCrushedOre("uranium"), CRUSHED_NICKEL = compatCrushedOre("nickel");
|
2020-05-28 01:29:26 +02:00
|
|
|
|
|
|
|
// Kinetics
|
|
|
|
|
|
|
|
static {
|
|
|
|
REGISTRATE.startSection(KINETICS);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final ItemEntry<BeltConnectorItem> BELT_CONNECTOR =
|
|
|
|
REGISTRATE.item("belt_connector", BeltConnectorItem::new)
|
|
|
|
.lang("Mechanical Belt")
|
|
|
|
.register();
|
|
|
|
|
2020-06-06 22:36:58 +02:00
|
|
|
public static final ItemEntry<VerticalGearboxItem> VERTICAL_GEARBOX =
|
|
|
|
REGISTRATE.item("vertical_gearbox", VerticalGearboxItem::new)
|
2021-05-04 03:50:17 +02:00
|
|
|
.model(AssetLookup.<VerticalGearboxItem>customBlockItemModel("gearbox", "item_vertical"))
|
2020-06-06 22:36:58 +02:00
|
|
|
.register();
|
2020-05-28 01:29:26 +02:00
|
|
|
|
2020-07-23 17:41:15 +02:00
|
|
|
public static final ItemEntry<BlazeBurnerBlockItem> EMPTY_BLAZE_BURNER =
|
|
|
|
REGISTRATE.item("empty_blaze_burner", BlazeBurnerBlockItem::empty)
|
2021-05-04 03:50:17 +02:00
|
|
|
.model(AssetLookup.<BlazeBurnerBlockItem>customBlockItemModel("blaze_burner", "block"))
|
2020-08-05 22:10:05 +02:00
|
|
|
.register();
|
2020-05-28 01:29:26 +02:00
|
|
|
|
2021-03-09 01:49:49 +01:00
|
|
|
public static final ItemEntry<GogglesItem> GOGGLES = REGISTRATE.item("goggles", GogglesItem::new)
|
|
|
|
.properties(p -> p.maxStackSize(1))
|
2021-06-26 01:17:35 +02:00
|
|
|
.onRegister(CreateRegistrate.itemModel(() -> GogglesModel::new))
|
|
|
|
.lang("Engineer's Goggles")
|
|
|
|
.register();
|
2021-03-09 01:49:49 +01:00
|
|
|
|
2020-05-28 01:29:26 +02:00
|
|
|
public static final ItemEntry<SuperGlueItem> SUPER_GLUE = REGISTRATE.item("super_glue", SuperGlueItem::new)
|
2021-06-26 01:17:35 +02:00
|
|
|
.register();
|
2020-05-28 01:29:26 +02:00
|
|
|
|
2020-08-05 22:10:05 +02:00
|
|
|
public static final ItemEntry<MinecartCouplingItem> MINECART_COUPLING =
|
2021-06-26 01:17:35 +02:00
|
|
|
REGISTRATE.item("minecart_coupling", MinecartCouplingItem::new)
|
|
|
|
.register();
|
2020-08-05 22:10:05 +02:00
|
|
|
|
2021-06-03 01:03:43 +02:00
|
|
|
public static final ItemEntry<BlueprintItem> CRAFTING_BLUEPRINT =
|
2021-06-26 01:17:35 +02:00
|
|
|
REGISTRATE.item("crafting_blueprint", BlueprintItem::new)
|
|
|
|
.register();
|
2020-08-05 22:10:05 +02:00
|
|
|
|
2020-05-28 01:29:26 +02:00
|
|
|
public static final ItemEntry<SandPaperItem> SAND_PAPER = REGISTRATE.item("sand_paper", SandPaperItem::new)
|
2021-06-26 01:17:35 +02:00
|
|
|
.transform(CreateRegistrate.customRenderedItem(() -> SandPaperModel::new))
|
|
|
|
.register();
|
2020-05-28 01:29:26 +02:00
|
|
|
|
|
|
|
public static final ItemEntry<SandPaperItem> RED_SAND_PAPER = REGISTRATE.item("red_sand_paper", SandPaperItem::new)
|
2021-06-26 01:17:35 +02:00
|
|
|
.transform(CreateRegistrate.customRenderedItem(() -> SandPaperModel::new))
|
|
|
|
.onRegister(s -> TooltipHelper.referTo(s, SAND_PAPER))
|
|
|
|
.register();
|
2020-05-28 01:29:26 +02:00
|
|
|
|
|
|
|
public static final ItemEntry<WrenchItem> WRENCH = REGISTRATE.item("wrench", WrenchItem::new)
|
2020-12-15 21:16:17 +01:00
|
|
|
.properties(p -> p.maxStackSize(1))
|
2020-05-28 01:29:26 +02:00
|
|
|
.transform(CreateRegistrate.customRenderedItem(() -> WrenchModel::new))
|
|
|
|
.model(AssetLookup.itemModelWithPartials())
|
|
|
|
.register();
|
|
|
|
|
2021-06-28 04:00:24 +02:00
|
|
|
public static final ItemEntry<MinecartContraptionItem> MINECART_CONTRAPTION =
|
|
|
|
REGISTRATE.item("minecart_contraption", MinecartContraptionItem::rideable)
|
|
|
|
.register();
|
|
|
|
|
|
|
|
public static final ItemEntry<MinecartContraptionItem> FURNACE_MINECART_CONTRAPTION =
|
|
|
|
REGISTRATE.item("furnace_minecart_contraption", MinecartContraptionItem::furnace)
|
|
|
|
.register();
|
|
|
|
|
|
|
|
public static final ItemEntry<MinecartContraptionItem> CHEST_MINECART_CONTRAPTION =
|
|
|
|
REGISTRATE.item("chest_minecart_contraption", MinecartContraptionItem::chest)
|
|
|
|
.register();
|
|
|
|
|
|
|
|
// Curiosities
|
|
|
|
|
|
|
|
static {
|
|
|
|
REGISTRATE.startSection(CURIOSITIES);
|
|
|
|
}
|
2021-06-28 17:02:57 +02:00
|
|
|
|
2021-05-31 20:48:22 +02:00
|
|
|
public static final ItemEntry<LinkedControllerItem> LINKED_CONTROLLER =
|
|
|
|
REGISTRATE.item("linked_controller", LinkedControllerItem::new)
|
2021-06-30 04:32:49 +02:00
|
|
|
.properties(p -> p.maxStackSize(1))
|
2021-05-31 20:48:22 +02:00
|
|
|
.transform(CreateRegistrate.customRenderedItem(() -> LinkedControllerModel::new))
|
|
|
|
.model(AssetLookup.itemModelWithPartials())
|
|
|
|
.register();
|
2021-06-03 01:03:43 +02:00
|
|
|
|
2021-06-26 01:17:35 +02:00
|
|
|
public static final ItemEntry<PotatoCannonItem> POTATO_CANNON =
|
|
|
|
REGISTRATE.item("potato_cannon", PotatoCannonItem::new)
|
2021-06-26 19:40:10 +02:00
|
|
|
.properties(p -> p.maxStackSize(1))
|
2021-06-26 01:17:35 +02:00
|
|
|
.transform(CreateRegistrate.customRenderedItem(() -> PotatoCannonModel::new))
|
|
|
|
.model(AssetLookup.itemModelWithPartials())
|
|
|
|
.register();
|
2021-07-06 15:04:22 +02:00
|
|
|
|
|
|
|
public static final ItemEntry<ExtendoGripItem> EXTENDO_GRIP = REGISTRATE.item("extendo_grip", ExtendoGripItem::new)
|
|
|
|
.transform(CreateRegistrate.customRenderedItem(() -> ExtendoGripModel::new))
|
|
|
|
.model(AssetLookup.itemModelWithPartials())
|
|
|
|
.register();
|
2021-06-26 01:17:35 +02:00
|
|
|
|
2021-05-01 13:19:01 +02:00
|
|
|
public static final ItemEntry<SymmetryWandItem> WAND_OF_SYMMETRY =
|
|
|
|
REGISTRATE.item("wand_of_symmetry", SymmetryWandItem::new)
|
|
|
|
.transform(CreateRegistrate.customRenderedItem(() -> SymmetryWandModel::new))
|
|
|
|
.model(AssetLookup.itemModelWithPartials())
|
|
|
|
.register();
|
2021-05-03 19:58:39 +02:00
|
|
|
|
2021-05-01 13:19:01 +02:00
|
|
|
public static final ItemEntry<WorldshaperItem> WORLDSHAPER =
|
|
|
|
REGISTRATE.item("handheld_worldshaper", WorldshaperItem::new)
|
|
|
|
.properties(p -> p.rarity(Rarity.EPIC))
|
|
|
|
.transform(CreateRegistrate.customRenderedItem(() -> WorldshaperModel::new))
|
|
|
|
.lang("Creative Worldshaper")
|
|
|
|
.model(AssetLookup.itemModelWithPartials())
|
|
|
|
.register();
|
|
|
|
|
2021-06-28 04:00:24 +02:00
|
|
|
public static final ItemEntry<? extends CopperArmorItem>
|
2020-05-28 01:29:26 +02:00
|
|
|
|
2021-06-28 04:00:24 +02:00
|
|
|
COPPER_BACKTANK =
|
|
|
|
REGISTRATE
|
|
|
|
.item("copper_backtank", p -> new CopperBacktankItem(p, new BlockItem(AllBlocks.COPPER_BACKTANK.get(), p)))
|
|
|
|
.model(AssetLookup.<CopperBacktankItem>customGenericItemModel("_", "item"))
|
|
|
|
.register(),
|
|
|
|
|
|
|
|
DIVING_HELMET = REGISTRATE.item("diving_helmet", DivingHelmetItem::new)
|
|
|
|
.register(),
|
|
|
|
|
|
|
|
DIVING_BOOTS = REGISTRATE.item("diving_boots", DivingBootsItem::new)
|
2020-05-28 01:29:26 +02:00
|
|
|
.register();
|
|
|
|
|
2021-06-28 04:00:24 +02:00
|
|
|
public static final ItemEntry<TreeFertilizerItem> TREE_FERTILIZER =
|
|
|
|
REGISTRATE.item("tree_fertilizer", TreeFertilizerItem::new)
|
2020-11-17 14:35:07 +01:00
|
|
|
.register();
|
|
|
|
|
2020-05-28 01:29:26 +02:00
|
|
|
// Logistics
|
|
|
|
|
|
|
|
static {
|
|
|
|
REGISTRATE.startSection(LOGISTICS);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final ItemEntry<FilterItem> FILTER = REGISTRATE.item("filter", FilterItem::regular)
|
|
|
|
.model(AssetLookup.existingItemModel())
|
|
|
|
.register();
|
|
|
|
|
|
|
|
public static final ItemEntry<FilterItem> ATTRIBUTE_FILTER =
|
|
|
|
REGISTRATE.item("attribute_filter", FilterItem::attribute)
|
|
|
|
.model(AssetLookup.existingItemModel())
|
|
|
|
.register();
|
2021-06-28 17:02:57 +02:00
|
|
|
|
2020-05-28 01:29:26 +02:00
|
|
|
// Schematics
|
|
|
|
|
|
|
|
static {
|
|
|
|
REGISTRATE.startSection(SCHEMATICS);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final ItemEntry<Item> EMPTY_SCHEMATIC = REGISTRATE.item("empty_schematic", Item::new)
|
|
|
|
.properties(p -> p.maxStackSize(1))
|
|
|
|
.register();
|
|
|
|
|
|
|
|
public static final ItemEntry<SchematicAndQuillItem> SCHEMATIC_AND_QUILL =
|
|
|
|
REGISTRATE.item("schematic_and_quill", SchematicAndQuillItem::new)
|
|
|
|
.properties(p -> p.maxStackSize(1))
|
|
|
|
.register();
|
|
|
|
|
|
|
|
public static final ItemEntry<SchematicItem> SCHEMATIC = REGISTRATE.item("schematic", SchematicItem::new)
|
|
|
|
.properties(p -> p.maxStackSize(1))
|
|
|
|
.register();
|
|
|
|
|
|
|
|
// Shortcuts
|
|
|
|
|
|
|
|
private static ItemEntry<Item> ingredient(String name) {
|
|
|
|
return REGISTRATE.item(name, Item::new)
|
|
|
|
.register();
|
|
|
|
}
|
|
|
|
|
2021-07-06 00:54:24 +02:00
|
|
|
// private static ItemEntry<HiddenIngredientItem> hiddenIngredient(String name) {
|
|
|
|
// return REGISTRATE.item(name, HiddenIngredientItem::new)
|
|
|
|
// .register();
|
|
|
|
// }
|
2020-12-13 15:17:31 +01:00
|
|
|
|
2020-06-19 18:37:11 +02:00
|
|
|
@SafeVarargs
|
2020-07-23 04:34:05 +02:00
|
|
|
private static ItemEntry<Item> taggedIngredient(String name, ITag.INamedTag<Item>... tags) {
|
2020-05-28 01:29:26 +02:00
|
|
|
return REGISTRATE.item(name, Item::new)
|
2020-06-19 18:37:11 +02:00
|
|
|
.tag(tags)
|
2020-05-28 01:29:26 +02:00
|
|
|
.register();
|
|
|
|
}
|
2020-06-06 22:36:58 +02:00
|
|
|
|
2020-12-04 18:10:07 +01:00
|
|
|
private static ItemEntry<TagDependentIngredientItem> compatCrushedOre(String metalName) {
|
|
|
|
return REGISTRATE
|
|
|
|
.item("crushed_" + metalName + "_ore",
|
|
|
|
props -> new TagDependentIngredientItem(props, new ResourceLocation("forge", "ores/" + metalName)))
|
|
|
|
.tag(AllItemTags.CRUSHED_ORES.tag)
|
|
|
|
.register();
|
|
|
|
}
|
|
|
|
|
2020-05-28 01:29:26 +02:00
|
|
|
// Load this class
|
|
|
|
|
|
|
|
public static void register() {}
|
|
|
|
|
|
|
|
}
|