2020-02-19 01:44:42 +01:00
|
|
|
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;
|
2020-05-09 11:57:07 +02:00
|
|
|
private final double maxHealth;
|
2020-02-19 01:44:42 +01:00
|
|
|
|
2020-05-09 11:57:07 +02:00
|
|
|
public DisguiseValues(DisguiseType type, double maxHealth) {
|
2020-02-19 01:44:42 +01:00
|
|
|
values.put(type, this);
|
|
|
|
this.maxHealth = maxHealth;
|
|
|
|
}
|
|
|
|
|
|
|
|
public FakeBoundingBox getAdultBox() {
|
|
|
|
return adultBox;
|
|
|
|
}
|
|
|
|
|
2020-04-27 07:31:00 +02:00
|
|
|
public void setAdultBox(FakeBoundingBox newBox) {
|
|
|
|
adultBox = newBox;
|
|
|
|
}
|
|
|
|
|
2020-02-19 01:44:42 +01:00
|
|
|
public FakeBoundingBox getBabyBox() {
|
|
|
|
return babyBox;
|
|
|
|
}
|
|
|
|
|
2020-04-27 07:31:00 +02:00
|
|
|
public void setBabyBox(FakeBoundingBox newBox) {
|
|
|
|
babyBox = newBox;
|
|
|
|
}
|
|
|
|
|
2020-02-19 01:44:42 +01:00
|
|
|
public double getMaxHealth() {
|
|
|
|
return maxHealth;
|
|
|
|
}
|
|
|
|
}
|