47 lines
1.1 KiB
Java
47 lines
1.1 KiB
Java
package me.libraryaddict.disguise.utilities;
|
|
|
|
import me.libraryaddict.disguise.disguisetypes.DisguiseType;
|
|
import me.libraryaddict.disguise.utilities.reflection.FakeBoundingBox;
|
|
|
|
import java.util.HashMap;
|
|
|
|
/**
|
|
* Created by libraryaddict on 19/02/2020.
|
|
*/
|
|
public class DisguiseValues {
|
|
private static HashMap<DisguiseType, DisguiseValues> values = new HashMap<>();
|
|
|
|
public static DisguiseValues getDisguiseValues(DisguiseType type) {
|
|
return values.get(type);
|
|
}
|
|
|
|
private FakeBoundingBox adultBox;
|
|
private FakeBoundingBox babyBox;
|
|
private final double maxHealth;
|
|
|
|
public DisguiseValues(DisguiseType type, double maxHealth) {
|
|
values.put(type, this);
|
|
this.maxHealth = maxHealth;
|
|
}
|
|
|
|
public FakeBoundingBox getAdultBox() {
|
|
return adultBox;
|
|
}
|
|
|
|
public void setAdultBox(FakeBoundingBox newBox) {
|
|
adultBox = newBox;
|
|
}
|
|
|
|
public FakeBoundingBox getBabyBox() {
|
|
return babyBox;
|
|
}
|
|
|
|
public void setBabyBox(FakeBoundingBox newBox) {
|
|
babyBox = newBox;
|
|
}
|
|
|
|
public double getMaxHealth() {
|
|
return maxHealth;
|
|
}
|
|
}
|