Package wbs.utils.util.effects
Enum RenderedItem.RenderType
- All Implemented Interfaces:
Serializable,Comparable<RenderedItem.RenderType>,java.lang.constant.Constable
- Enclosing class:
- RenderedItem
Represents a specific implementation of
ItemRenderer-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionwbs.utils.util.effects.ItemRenderergetRenderer(org.bukkit.Location loc) Gets a new ItemRenderer based on the enum value, created at the given locationstatic RenderedItem.RenderTypeReturns the enum constant of this type with the specified name.static RenderedItem.RenderType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HEAD
-
HAND
-
SMALL_HEAD
-
SMALL_HAND
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getRenderer
public wbs.utils.util.effects.ItemRenderer getRenderer(org.bukkit.Location loc) Gets a new ItemRenderer based on the enum value, created at the given location- Parameters:
loc- The location to render the item- Returns:
- A new ItemRenderer
-