Removed needing a buffer chest for the new item routing ritual - working on a few odd quirks, however.
This commit is contained in:
parent
2888fcfe07
commit
539bb564fa
12 changed files with 437 additions and 188 deletions
|
@ -1,5 +1,8 @@
|
|||
package WayofTime.alchemicalWizardry.common.book;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import WayofTime.alchemicalWizardry.ModBlocks;
|
||||
|
@ -41,9 +44,10 @@ public class BUEntries
|
|||
|
||||
public void initEntries()
|
||||
{
|
||||
HashMap<Integer, IEntry> aIntroMap = new HashMap();
|
||||
aIntroMap.put(0, new EntryImage("bloodutils:textures/misc/screenshots/t1.png", 854, 480));
|
||||
/* The Architect */
|
||||
|
||||
aIntro = this.getPureTextEntry(5, "Your classic tragic backstory", 1);
|
||||
aIntro = this.getMixedTextEntry(6, "Your classic tragic backstory", 1, aIntroMap);
|
||||
aBloodAltar = this.getPureTextEntry(3, "The Blood Altar", 1);
|
||||
aSoulNetwork = this.getPureTextEntry(3, "The Soul Network", 1);
|
||||
aBasicsOfSigils = this.getPureTextEntry(4, "Basics of sigils and a glimpse into the soul", 1);
|
||||
|
@ -142,6 +146,25 @@ public class BUEntries
|
|||
return new Entry(entries, name, pageNumber);
|
||||
}
|
||||
|
||||
public Entry getMixedTextEntry(int numberOfPages, String name, int pageNumber, Map<Integer, IEntry> map)
|
||||
{
|
||||
IEntry[] entries = new IEntry[numberOfPages];
|
||||
for(int i=0; i<numberOfPages; i++)
|
||||
{
|
||||
entries[i] = new EntryText();
|
||||
}
|
||||
|
||||
for(Map.Entry<Integer, IEntry> ent : map.entrySet())
|
||||
{
|
||||
if(ent.getKey() < entries.length)
|
||||
{
|
||||
entries[ent.getKey()] = ent.getValue();
|
||||
}
|
||||
}
|
||||
|
||||
return new Entry(entries, name, pageNumber);
|
||||
}
|
||||
|
||||
/* Architect */
|
||||
public static Entry aIntro;
|
||||
public static Entry aBloodAltar;
|
||||
|
@ -310,4 +333,4 @@ public class BUEntries
|
|||
/** Debug */
|
||||
EntryRegistry.registerEntry(BUEntries.categoryBasics, EntryRegistry.basics, BUEntries.debug);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue