JAOPCA
Link to jaopca
JAOPCA (Just A Ore Processing Compatibility Attempt) is a mod that aims to add ore processing compatibilty to many mods.
Dieses Paket importieren
Link to dieses-paket-importieren
If you want to shorten your method calls, you can import the package.
You can do so using
ZenScript Copyimport mods.jaopca.JAOPCA;
Methoden
Link to methoden
This package is your entry point for JAOPCA. It provides a means of checking for and getting OreEntry objects. Check the respective page for further information, but in short they are material names (e.g. "Gold") that can then have entries, like chunks, dusts and all.
- Entry: e.g. "nugget", "dust", "molten", ... (check here for a list of them all)
- OreEntry: e.g. "Diamond", "Coal", "Redstone", ...
- OreType: e.g. "INGOT", "GEM", "DUST"
Check if an entry exists
Link to check-if-an-entry-exists
Returns true
if an entry with the given name exists
ZenScript Copy//mods.jaopca.JAOPCA.containsEntry(entryName);
mods.jaopca.JAOPCA.containsEntry("nugget");
Get an OreEntry
Link to get-an-oreentry
Returns the given OreEntry for the given name, or null
if it does not exist. Careful: Most materials are Capitalized, and yes, casing matters!
ZenScript Copy//mods.jaopca.JAOPCA.getOre(oreName);
mods.jaopca.JAOPCA.getOre("Coal");
Get all OreEntries for an entry
Link to get-all-oreentries-for-an-entry
Returns a list of all OreEntry objects that have the given entry registered.
ZenScript Copy//mods.jaopca.JAOPCA.getOresForEntry(entryName);
mods.jaopca.JAOPCA.getOresForEntry("nugget");
Get all OreEntries for an entry
Link to get-all-oreentries-for-an-entry-1
Returns a list of all OreEntry objects that are of the given oreType.
ZenScript Copy//mods.jaopca.JAOPCA.getOresForType(oreType);
mods.jaopca.JAOPCA.getOresForType("GEM");
Get all registered OreEntries
Link to get-all-registered-oreentries
Returns a list of all registered OreEntry objects.
ZenScript Copymods.jaopca.JAOPCA.getAllOres();