Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-25 15:50:10 +01:00
Remove unused method from MetaIndex
Dieser Commit ist enthalten in:
Ursprung
2de176e55c
Commit
1445bd37c3
@ -159,16 +159,6 @@ public enum MetaIndex {
|
|||||||
return this.clazz;
|
return this.clazz;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static MetaIndex getIndex(Entity entity, int index) {
|
|
||||||
EntityType type;
|
|
||||||
if (entity instanceof Player) {
|
|
||||||
type = EntityType.PLAYER;
|
|
||||||
} else {
|
|
||||||
type = entity.getType();
|
|
||||||
}
|
|
||||||
return getIndex(type, index);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static MetaIndex getIndex(EntityType type, int index) {
|
public static MetaIndex getIndex(EntityType type, int index) {
|
||||||
Class<? extends org.bukkit.entity.Entity> entityClass = type.getEntityClass();
|
Class<? extends org.bukkit.entity.Entity> entityClass = type.getEntityClass();
|
||||||
if(entityClass == null){
|
if(entityClass == null){
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren