forked from MagicBane/Server
Refactor of animations
This commit is contained in:
@@ -42,8 +42,6 @@ public class ItemBase {
|
||||
private final engine.Enum.SourceType damageType;
|
||||
private boolean isConsumable;
|
||||
private final boolean isStrBased;
|
||||
private ArrayList<Integer> animations = new ArrayList<>();
|
||||
private ArrayList<Integer> offHandAnimations = new ArrayList<>();
|
||||
|
||||
public ItemBase(ResultSet rs) throws SQLException {
|
||||
|
||||
@@ -84,12 +82,6 @@ public class ItemBase {
|
||||
this.isConsumable = true;
|
||||
break;
|
||||
}
|
||||
|
||||
try {
|
||||
DbManager.ItemBaseQueries.LOAD_ANIMATIONS(this);
|
||||
} catch (Exception e) {
|
||||
Logger.error(e.getMessage());
|
||||
}
|
||||
initializeHashes();
|
||||
|
||||
}
|
||||
@@ -204,7 +196,6 @@ public class ItemBase {
|
||||
public short getMinDamage() {
|
||||
return minDamage;
|
||||
}
|
||||
|
||||
public Enum.SourceType getDamageType() {
|
||||
return damageType;
|
||||
}
|
||||
@@ -213,20 +204,4 @@ public class ItemBase {
|
||||
return percentRequired;
|
||||
}
|
||||
|
||||
public ArrayList<Integer> getAnimations() {
|
||||
return animations;
|
||||
}
|
||||
|
||||
public void setAnimations(ArrayList<Integer> animations) {
|
||||
this.animations = animations;
|
||||
}
|
||||
|
||||
public ArrayList<Integer> getOffHandAnimations() {
|
||||
return offHandAnimations;
|
||||
}
|
||||
|
||||
public void setOffHandAnimations(ArrayList<Integer> offHandAnimations) {
|
||||
this.offHandAnimations = offHandAnimations;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user