Change the use of the disguiseclone command to use references instead

This commit is contained in:
libraryaddict
2014-06-02 10:03:59 +12:00
parent 4b55a24444
commit 31a0b68bdc
7 changed files with 177 additions and 113 deletions

View File

@@ -19,6 +19,7 @@ public class DisguiseConfig {
private static boolean keepDisguiseEntityDespawn;
private static boolean keepDisguisePlayerDeath;
private static boolean keepDisguisePlayerLogout;
private static int maxClonedDisguises;
private static boolean maxHealthIsDisguisedEntity;
private static boolean miscDisguisesForLivingEnabled;
private static boolean modifyBoundingBox;
@@ -44,6 +45,10 @@ public class DisguiseConfig {
return disguiseEntityExpire;
}
public static int getMaxClonedDisguises() {
return maxClonedDisguises;
}
public static boolean isAnimationPacketsEnabled() {
return animationEnabled;
}
@@ -263,6 +268,10 @@ public class DisguiseConfig {
keepDisguisePlayerLogout = keepDisguise;
}
public static void setMaxClonedDisguises(int newMax) {
maxClonedDisguises = newMax;
}
public static void setMaxHealthDeterminedByDisguisedEntity(boolean isDetermined) {
maxHealthIsDisguisedEntity = isDetermined;
}