Java Code Examples for thaumcraft.api.aspects.Aspect#getCompoundAspects()

The following examples show how to use thaumcraft.api.aspects.Aspect#getCompoundAspects() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NodeManipulatorResultHandler.java    From Gadomancy with GNU Lesser General Public License v3.0 5 votes vote down vote up
public static Aspect getCombination(Aspect a, Aspect b) {
    for(Aspect aspect : Aspect.getCompoundAspects()) {
        Aspect[] components = aspect.getComponents();
        if((components[0] == a && components[1] == b) ||
                components[0] == b && components[1] == a) {
            return aspect;
        }
    }
    return null;
}
 
Example 2
Source File: ThaumcraftApiHelper.java    From OpenPeripheral-Integration with MIT License 5 votes vote down vote up
public static AspectList getAllCompoundAspects(int amount) {
	if (allCompoundAspects.get(amount)==null) {
		AspectList al = new AspectList();
		for (Aspect aspect:Aspect.getCompoundAspects()) {
			al.add(aspect, amount);
		}
		allCompoundAspects.put(amount, al);
	} 
	return allCompoundAspects.get(amount);
}
 
Example 3
Source File: ThaumcraftApiHelper.java    From AdvancedMod with GNU General Public License v3.0 5 votes vote down vote up
public static AspectList getAllCompoundAspects(int amount) {
	if (allCompoundAspects.get(amount)==null) {
		AspectList al = new AspectList();
		for (Aspect aspect:Aspect.getCompoundAspects()) {
			al.add(aspect, amount);
		}
		allCompoundAspects.put(amount, al);
	} 
	return allCompoundAspects.get(amount);
}
 
Example 4
Source File: ThaumcraftApiHelper.java    From Chisel-2 with GNU General Public License v2.0 5 votes vote down vote up
public static AspectList getAllCompoundAspects(int amount) {
	if (allCompoundAspects.get(amount)==null) {
		AspectList al = new AspectList();
		for (Aspect aspect:Aspect.getCompoundAspects()) {
			al.add(aspect, amount);
		}
		allCompoundAspects.put(amount, al);
	} 
	return allCompoundAspects.get(amount);
}
 
Example 5
Source File: ThaumcraftApiHelper.java    From GardenCollection with MIT License 5 votes vote down vote up
public static AspectList getAllCompoundAspects(int amount) {
	if (allCompoundAspects.get(amount)==null) {
		AspectList al = new AspectList();
		for (Aspect aspect:Aspect.getCompoundAspects()) {
			al.add(aspect, amount);
		}
		allCompoundAspects.put(amount, al);
	} 
	return allCompoundAspects.get(amount);
}
 
Example 6
Source File: ThaumcraftApiHelper.java    From ForbiddenMagic with Do What The F*ck You Want To Public License 5 votes vote down vote up
public static AspectList getAllCompoundAspects(int amount) {
	if (allCompoundAspects.get(amount)==null) {
		AspectList al = new AspectList();
		for (Aspect aspect:Aspect.getCompoundAspects()) {
			al.add(aspect, amount);
		}
		allCompoundAspects.put(amount, al);
	} 
	return allCompoundAspects.get(amount);
}
 
Example 7
Source File: ThaumcraftApiHelper.java    From PneumaticCraft with GNU General Public License v3.0 5 votes vote down vote up
public static AspectList getAllCompoundAspects(int amount) {
	if (allCompoundAspects.get(amount)==null) {
		AspectList al = new AspectList();
		for (Aspect aspect:Aspect.getCompoundAspects()) {
			al.add(aspect, amount);
		}
		allCompoundAspects.put(amount, al);
	} 
	return allCompoundAspects.get(amount);
}