Enum Class RabbitHelper.Type
java.lang.Object
java.lang.Enum<RabbitHelper.Type>
net.guizhanss.guizhanlib.minecraft.helper.entity.RabbitHelper.Type
- All Implemented Interfaces:
Serializable,Comparable<RabbitHelper.Type>,Constable
- Enclosing class:
- RabbitHelper
所有兔子的类型
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription黑色黑白相间褐色金色胡椒盐色杀手兔白色 -
Method Summary
Modifier and TypeMethodDescriptionstatic RabbitHelper.TypefromType(Rabbit.Type rabbitType) 获取兔子的类型toString()static RabbitHelper.TypeReturns the enum constant of this class with the specified name.static RabbitHelper.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLACK
黑色 -
BLACK_AND_WHITE
黑白相间 -
BROWN
褐色 -
GOLD
金色 -
SALT_AND_PEPPER
胡椒盐色 -
THE_KILLER_BUNNY
杀手兔 -
WHITE
白色
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromType
获取兔子的类型- Parameters:
rabbitType-Rabbit.Type兔子的类型- Returns:
- 兔子的类型
-
toString
- Overrides:
toStringin classEnum<RabbitHelper.Type>
-