Search in sources :

Example 1 with CombatType

use of thebetweenlands.common.capability.circlegem.CircleGem.CombatType in project RandomTweaker by Project-RT.

the class BLCircleGem method addGem.

@ZenMethod
public static void addGem(IEntity entity, String gemType, String combatType) {
    CircleGemType circleGemType = getCircleGemType(gemType);
    CombatType combatType1 = getCombatType(combatType);
    if (circleGemType != null) {
        if (combatType1 != null) {
            CircleGemHelper.addGem(CraftTweakerMC.getEntity(entity), circleGemType, combatType1);
        } else {
            CraftTweakerAPI.logError("combatType was non-existent");
        }
    } else {
        CraftTweakerAPI.logError("gemType was non-existent");
    }
}
Also used : CombatType(thebetweenlands.common.capability.circlegem.CircleGem.CombatType) CircleGemType(thebetweenlands.common.capability.circlegem.CircleGemType) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Aggregations

ZenMethod (stanhebben.zenscript.annotations.ZenMethod)1 CombatType (thebetweenlands.common.capability.circlegem.CircleGem.CombatType)1 CircleGemType (thebetweenlands.common.capability.circlegem.CircleGemType)1