Compatibility for 1.16

This commit is contained in:
Magnus Ulf 2020-12-16 18:51:04 +01:00
parent 873609ab3c
commit 6c892079f8
2 changed files with 0 additions and 27 deletions

View File

@ -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>
{
// -------------------------------------------- //
@ -17,25 +14,5 @@ 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;
}
}

View File

@ -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;
}