Include missing class & Release 9.9.4
This commit is contained in:
parent
897a6629ae
commit
cff2dc6e4a
2
pom.xml
2
pom.xml
@ -5,7 +5,7 @@
|
|||||||
<!-- A good example on why temporary names for project identification shouldn't be used -->
|
<!-- A good example on why temporary names for project identification shouldn't be used -->
|
||||||
<groupId>LibsDisguises</groupId>
|
<groupId>LibsDisguises</groupId>
|
||||||
<artifactId>LibsDisguises</artifactId>
|
<artifactId>LibsDisguises</artifactId>
|
||||||
<version>9.9.3-SNAPSHOT</version>
|
<version>9.9.4</version>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<defaultGoal>exec:java clean install</defaultGoal>
|
<defaultGoal>exec:java clean install</defaultGoal>
|
||||||
|
@ -0,0 +1,57 @@
|
|||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Class getNmsEntityClass(DisguiseType type) {
|
||||||
|
return getDisguiseValues(type).getNmsEntityClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
private FakeBoundingBox adultBox;
|
||||||
|
private FakeBoundingBox babyBox;
|
||||||
|
private float[] entitySize;
|
||||||
|
private double maxHealth;
|
||||||
|
private Class nmsEntityClass;
|
||||||
|
|
||||||
|
public DisguiseValues(DisguiseType type, Class classType, int entitySize, double maxHealth) {
|
||||||
|
values.put(type, this);
|
||||||
|
nmsEntityClass = classType;
|
||||||
|
this.maxHealth = maxHealth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FakeBoundingBox getAdultBox() {
|
||||||
|
return adultBox;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FakeBoundingBox getBabyBox() {
|
||||||
|
return babyBox;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getMaxHealth() {
|
||||||
|
return maxHealth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Class getNmsEntityClass() {
|
||||||
|
return nmsEntityClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAdultBox(FakeBoundingBox newBox) {
|
||||||
|
adultBox = newBox;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBabyBox(FakeBoundingBox newBox) {
|
||||||
|
babyBox = newBox;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user