Add TypeVariant (Parrot variants) from 1.12.

This commit is contained in:
ulumulu1510 2017-07-04 22:38:26 +02:00
parent 99509319f7
commit aa91956967
2 changed files with 28 additions and 0 deletions

View File

@ -38,6 +38,7 @@ import com.massivecraft.massivecore.command.type.enumeration.TypeRabbitType;
import com.massivecraft.massivecore.command.type.enumeration.TypeSkeletonType; import com.massivecraft.massivecore.command.type.enumeration.TypeSkeletonType;
import com.massivecraft.massivecore.command.type.enumeration.TypeSound; import com.massivecraft.massivecore.command.type.enumeration.TypeSound;
import com.massivecraft.massivecore.command.type.enumeration.TypeSpawnReason; import com.massivecraft.massivecore.command.type.enumeration.TypeSpawnReason;
import com.massivecraft.massivecore.command.type.enumeration.TypeVariant;
import com.massivecraft.massivecore.command.type.enumeration.TypeVillagerProfession; import com.massivecraft.massivecore.command.type.enumeration.TypeVillagerProfession;
import com.massivecraft.massivecore.command.type.enumeration.TypeWorldType; import com.massivecraft.massivecore.command.type.enumeration.TypeWorldType;
import com.massivecraft.massivecore.command.type.primitive.TypeBooleanTrue; import com.massivecraft.massivecore.command.type.primitive.TypeBooleanTrue;
@ -347,6 +348,15 @@ public class RegistryType
} }
try
{
register(TypeVariant.get());
}
catch (Throwable t)
{
}
register(TypeSkeletonType.get()); register(TypeSkeletonType.get());
register(TypeSound.get()); register(TypeSound.get());
register(TypeVillagerProfession.get()); register(TypeVillagerProfession.get());

View File

@ -0,0 +1,18 @@
package com.massivecraft.massivecore.command.type.enumeration;
import org.bukkit.entity.Parrot;
public class TypeVariant extends TypeEnum<Parrot.Variant>
{
// -------------------------------------------- //
// INSTANCE & CONSTRUCT
// -------------------------------------------- //
private static TypeVariant i = new TypeVariant();
public static TypeVariant get() { return i; }
public TypeVariant()
{
super(Parrot.Variant.class);
}
}