Unused imports

This commit is contained in:
Indyuce 2022-07-11 17:42:11 +02:00
parent 8d53bc7f51
commit 27756f9cd1
8 changed files with 70 additions and 22 deletions

View File

@ -59,27 +59,9 @@ public class Type {
@NotNull private final String id;
private String name;
@NotNull private final TypeSet set;
/**
* @return Does it display as four rows in /mmoitems browse?
*/
public boolean isFourGUIMode() { return fourGUIMode; }
private boolean fourGUIMode;
/**
* @return Default lore format used by this Type
*/
@Nullable public String getLoreFormat() { return loreFormat; }
@Nullable private String loreFormat;
/**
* Used for item type restrictions for gem stones to easily check if the
* item is a weapon.
*/
private final boolean weapon;
@NotNull private final EquipmentSlot equipType;
@Nullable
private String loreFormat;
/**
* Used to display the item in the item explorer and in the item recipes
@ -96,6 +78,25 @@ public class Type {
private UnidentifiedItem unidentifiedTemplate;
@NotNull private final EquipmentSlot equipType;
/**
* Used for item type restrictions for gem stones to easily check if the
* item is a weapon.
*/
private final boolean weapon;
/**
* @return Does it display as four rows in /mmoitems browse?
*/
public boolean isFourGUIMode() { return fourGUIMode; }
/**
* @return Default lore format used by this Type
*/
@Nullable public String getLoreFormat() { return loreFormat; }
/**
* List of stats which can be applied onto an item which has this type. This
* improves performance when generating an item by a significant amount.
@ -105,6 +106,7 @@ public class Type {
public Type(TypeSet set, String id, boolean weapon, EquipmentSlot equipType) {
this(set, id, weapon, equipType, false);
}
public Type(@NotNull TypeSet set, @NotNull String id, boolean weapon, @NotNull EquipmentSlot equipType, boolean fourGUI) {
this.set = set;
this.id = id.toUpperCase().replace("-", "_").replace(" ", "_");

View File

@ -0,0 +1,26 @@
package net.Indyuce.mmoitems.skill.custom.condition;
import io.lumine.mythic.lib.skill.SkillMetadata;
import io.lumine.mythic.lib.skill.custom.condition.Condition;
import io.lumine.mythic.lib.util.configobject.ConfigObject;
import net.Indyuce.mmoitems.api.player.PlayerData;
import java.util.Arrays;
import java.util.List;
public class ClassCondition extends Condition {
private final List<String> classes;
public ClassCondition(ConfigObject config) {
super(config);
config.validateKeys("list");
classes = Arrays.asList(config.getString("list").split(","));
}
@Override
public boolean isMet(SkillMetadata skillMetadata) {
PlayerData playerData = PlayerData.get(skillMetadata.getCaster().getPlayer());
return classes.contains(playerData.getRPG().getClassName());
}
}

View File

@ -0,0 +1,4 @@
package net.Indyuce.mmoitems.skill.custom.condition;
public class FoodCondition {
}

View File

@ -0,0 +1,4 @@
package net.Indyuce.mmoitems.skill.custom.condition;
public class LevelCondition {
}

View File

@ -0,0 +1,5 @@
package net.Indyuce.mmoitems.skill.custom.condition;
@Deprecated
public class ManaCondition {
}

View File

@ -0,0 +1,5 @@
package net.Indyuce.mmoitems.skill.custom.condition;
@Deprecated
public class StaminaCondition {
}

View File

@ -0,0 +1,4 @@
package net.Indyuce.mmoitems.skill.custom.mechanic;
public class GiveMMOItem {
}

View File

@ -6,7 +6,6 @@ import io.lumine.mythic.lib.api.item.ItemTag;
import io.lumine.mythic.lib.api.item.SupportedNBTTagValues;
import io.lumine.mythic.lib.api.util.AltChar;
import io.lumine.mythic.lib.version.VersionMaterial;
import io.lumine.utils.particles.effects.ParticleCircle;
import net.Indyuce.mmoitems.MMOItems;
import net.Indyuce.mmoitems.MMOUtils;
import net.Indyuce.mmoitems.api.item.build.ItemStackBuilder;
@ -15,7 +14,6 @@ import net.Indyuce.mmoitems.gui.edition.EditionInventory;
import net.Indyuce.mmoitems.gui.edition.ParticlesEdition;
import net.Indyuce.mmoitems.particle.api.ParticleType;
import net.Indyuce.mmoitems.stat.data.ParticleData;
import net.Indyuce.mmoitems.stat.data.random.RandomStatData;
import net.Indyuce.mmoitems.stat.data.type.StatData;
import net.Indyuce.mmoitems.stat.type.ItemStat;
import org.apache.commons.lang.Validate;