Add TypeVariant (Parrot variants) from 1.12.
This commit is contained in:
parent
99509319f7
commit
aa91956967
@ -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());
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user