Package com.beansgalaxy.backpacks.entity
Enum Class Kind
- All Implemented Interfaces:
Serializable,Comparable<Kind>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic KindfromItem(net.minecraft.world.level.ItemLike item) static Kindstatic KindfromStack(net.minecraft.world.item.ItemStack stack) net.minecraft.resources.ResourceLocationgetAppendedResource(String key, String append) net.minecraft.world.item.ItemgetItem()net.minecraft.network.chat.ComponentgetName(Traits.LocalData traits) getShiftedColor(int color) static TraitsgetTraits(net.minecraft.world.item.ItemStack stack) booleanstatic booleanbooleanis(net.minecraft.world.item.ItemStack backStack) static booleanisBackpack(net.minecraft.world.item.ItemStack backpackStack) static booleanisWearable(net.minecraft.world.item.Item item) static booleanisWearable(net.minecraft.world.item.ItemStack stack) static booleanisWearableElytra(net.minecraft.world.item.Item item) static booleanisWings(net.minecraft.world.item.ItemStack backStack) static KindReturns the enum constant of this class with the specified name.static Kind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEATHER
-
METAL
-
UPGRADED
-
WINGED
-
ENDER
-
POT
-
CAULDRON
-
-
Field Details
-
defaultTraits
-
-
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
-
getTraits
-
traits
-
isBackpack
public static boolean isBackpack(net.minecraft.world.item.ItemStack backpackStack) -
isWearable
public static boolean isWearable(net.minecraft.world.item.ItemStack stack) -
isWearable
public static boolean isWearable(net.minecraft.world.item.Item item) -
isWings
public static boolean isWings(net.minecraft.world.item.ItemStack backStack) -
isWearableElytra
public static boolean isWearableElytra(net.minecraft.world.item.Item item) -
fromStack
-
fromItem
-
getItem
public net.minecraft.world.item.Item getItem() -
fromName
-
is
public boolean is(net.minecraft.world.item.ItemStack backStack) -
is
-
is
-
getAppendedResource
-
getShiftedColor
-
getName
-