mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-01-21 23:11:29 +01:00
Remove unused method from MetaIndex
This commit is contained in:
parent
2de176e55c
commit
1445bd37c3
@ -159,16 +159,6 @@ public enum MetaIndex {
|
||||
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) {
|
||||
Class<? extends org.bukkit.entity.Entity> entityClass = type.getEntityClass();
|
||||
if(entityClass == null){
|
||||
|
Loading…
Reference in New Issue
Block a user