Compatibility for 1.16
This commit is contained in:
parent
873609ab3c
commit
6c892079f8
@ -1,10 +1,7 @@
|
||||
package com.massivecraft.massivecore.command.type.enumeration;
|
||||
|
||||
import com.massivecraft.massivecore.collections.MassiveSet;
|
||||
import org.bukkit.entity.EntityType;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
public class TypeEntityType extends TypeEnum<EntityType>
|
||||
{
|
||||
// -------------------------------------------- //
|
||||
@ -18,24 +15,4 @@ public class TypeEntityType extends TypeEnum<EntityType>
|
||||
super(EntityType.class);
|
||||
}
|
||||
|
||||
// -------------------------------------------- //
|
||||
// OVERRIDE
|
||||
// -------------------------------------------- //
|
||||
|
||||
@Override
|
||||
public Set<String> getNamesInner(EntityType value)
|
||||
{
|
||||
Set<String> ret = new MassiveSet<>(super.getNamesInner(value));
|
||||
|
||||
if (value == EntityType.PIG_ZOMBIE)
|
||||
{
|
||||
ret.add("pigman");
|
||||
ret.add("pigzombie");
|
||||
ret.add("manpig");
|
||||
ret.add("zombiepig");
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -32,10 +32,6 @@ public class TypeWorldType extends TypeEnum<WorldType>
|
||||
ret.add("normal");
|
||||
ret.add("default");
|
||||
}
|
||||
else if (value == WorldType.VERSION_1_1)
|
||||
{
|
||||
ret.add("11");
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user