mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-03-24 10:54:33 +00:00
plate stamps and siren tracks moved to the anvil
This commit is contained in:
parent
274aaede2b
commit
24f53f4997
@ -56,17 +56,7 @@ public class GUIScreenTemplateFolder extends GuiScreen {
|
|||||||
|
|
||||||
this.isJournal = item != ModItems.template_folder;
|
this.isJournal = item != ModItems.template_folder;
|
||||||
|
|
||||||
if(!this.isJournal) {
|
|
||||||
// Stamps
|
|
||||||
for(ItemStack i : ItemStamp.stamps.get(StampType.PLATE)) allStacks.add(i.copy());
|
|
||||||
for(ItemStack i : ItemStamp.stamps.get(StampType.WIRE)) allStacks.add(i.copy());
|
|
||||||
for(ItemStack i : ItemStamp.stamps.get(StampType.CIRCUIT)) allStacks.add(i.copy());
|
|
||||||
|
|
||||||
// Tracks
|
|
||||||
for(int i = 1; i < ItemCassette.TrackType.values().length; i++) {
|
|
||||||
allStacks.add(new ItemStack(ModItems.siren_track, 1, i));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!this.isJournal) {
|
if(!this.isJournal) {
|
||||||
|
|
||||||
|
|||||||
@ -166,7 +166,9 @@ public class AnvilRecipes extends SerializableRecipe {
|
|||||||
constructionRecipes.add(new AnvilConstructionRecipe(new OreDictStack(EMERALD.dust()), new AnvilOutput(new ItemStack(Items.emerald))).setTier(3));
|
constructionRecipes.add(new AnvilConstructionRecipe(new OreDictStack(EMERALD.dust()), new AnvilOutput(new ItemStack(Items.emerald))).setTier(3));
|
||||||
|
|
||||||
registerConstructionRecipes();
|
registerConstructionRecipes();
|
||||||
|
registerConstructionStamps();
|
||||||
registerConstructionAmmo();
|
registerConstructionAmmo();
|
||||||
|
registerConstructionSirens();
|
||||||
registerConstructionUpgrades();
|
registerConstructionUpgrades();
|
||||||
registerConstructionRecycling();
|
registerConstructionRecycling();
|
||||||
}
|
}
|
||||||
@ -578,6 +580,34 @@ public class AnvilRecipes extends SerializableRecipe {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void registerConstructionStamps() {
|
||||||
|
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_stone_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_stone_plate))).setTier(1));
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_stone_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_stone_wire))).setTier(1));
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_stone_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_stone_circuit))).setTier(1));
|
||||||
|
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_iron_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_iron_plate))).setTier(1));
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_iron_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_iron_wire))).setTier(1));
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_iron_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_iron_circuit))).setTier(1));
|
||||||
|
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_steel_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_steel_plate))).setTier(2));
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_steel_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_steel_wire))).setTier(2));
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_steel_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_steel_circuit))).setTier(2));
|
||||||
|
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_titanium_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_titanium_plate))).setTier(2));
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_titanium_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_titanium_wire))).setTier(2));
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_titanium_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_titanium_circuit))).setTier(2));
|
||||||
|
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_obsidian_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_obsidian_plate))).setTier(2));
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_obsidian_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_obsidian_wire))).setTier(2));
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_obsidian_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_obsidian_circuit))).setTier(2));
|
||||||
|
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_desh_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_desh_plate))).setTier(3));
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_desh_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_desh_wire))).setTier(3));
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new ComparableStack(ModItems.stamp_desh_flat, 1),new AnvilOutput(new ItemStack(ModItems.stamp_desh_circuit))).setTier(3));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public static void registerConstructionAmmo() {
|
public static void registerConstructionAmmo() {
|
||||||
|
|
||||||
constructionRecipes.add(new AnvilConstructionRecipe(new AStack[]{new ComparableStack(ModItems.stamp_iron_flat), new OreDictStack(GUNMETAL.ingot(), 2)}, new AnvilOutput(new ItemStack(ModItems.stamp_9))).setTier(2));
|
constructionRecipes.add(new AnvilConstructionRecipe(new AStack[]{new ComparableStack(ModItems.stamp_iron_flat), new OreDictStack(GUNMETAL.ingot(), 2)}, new AnvilOutput(new ItemStack(ModItems.stamp_9))).setTier(2));
|
||||||
@ -597,6 +627,14 @@ public class AnvilRecipes extends SerializableRecipe {
|
|||||||
constructionRecipes.add(new AnvilConstructionRecipe(new AStack[]{new ComparableStack(ModItems.mold_base), new OreDictStack(STEEL.ingot(), 4)}, new AnvilOutput(new ItemStack(ModItems.mold, 1, 28))).setTier(2));
|
constructionRecipes.add(new AnvilConstructionRecipe(new AStack[]{new ComparableStack(ModItems.mold_base), new OreDictStack(STEEL.ingot(), 4)}, new AnvilOutput(new ItemStack(ModItems.mold, 1, 28))).setTier(2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void registerConstructionSirens() {
|
||||||
|
for(int i = 1; i < 21; i++) {
|
||||||
|
constructionRecipes.add(new AnvilConstructionRecipe(new AStack[] {new OreDictStack(STEEL.plate()), new ComparableStack(ModItems.plate_polymer)}, new AnvilOutput(new ItemStack(ModItems.siren_track, 1, i))).setTier(2).setOverlay(OverlayType.CONSTRUCTION));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public static void registerConstructionUpgrades() { }
|
public static void registerConstructionUpgrades() { }
|
||||||
|
|
||||||
public static void registerConstructionRecycling() {
|
public static void registerConstructionRecycling() {
|
||||||
|
|||||||
@ -120,8 +120,6 @@ public class ItemCassette extends Item {
|
|||||||
if(!(stack.getItem() instanceof ItemCassette))
|
if(!(stack.getItem() instanceof ItemCassette))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
list.add(EnumChatFormatting.YELLOW + I18nUtil.resolveKey("info.templatefolder", I18nUtil.resolveKey(ModItems.template_folder.getUnlocalizedName() + ".name")));
|
|
||||||
list.add("");
|
|
||||||
|
|
||||||
list.add("Siren sound cassette:");
|
list.add("Siren sound cassette:");
|
||||||
list.add(" Name: " + TrackType.getEnum(stack.getItemDamage()).getTrackTitle());
|
list.add(" Name: " + TrackType.getEnum(stack.getItemDamage()).getTrackTitle());
|
||||||
|
|||||||
@ -34,11 +34,7 @@ public class ItemStamp extends Item {
|
|||||||
stamps.put(type, list);
|
stamps.put(type, list);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean bool) {
|
|
||||||
if(this.type == StampType.PLATE || this.type == StampType.WIRE || this.type == StampType.CIRCUIT)
|
|
||||||
list.add("[CREATED USING TEMPLATE FOLDER]");
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Params can't take an ItemStack, for some reason it crashes during init */
|
/** Params can't take an ItemStack, for some reason it crashes during init */
|
||||||
public StampType getStampType(Item item, int meta) {
|
public StampType getStampType(Item item, int meta) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user