Enum Class ItemAttribute.StandardTraits
java.lang.Object
java.lang.Enum<ItemAttribute.StandardTraits>
com.simibubi.create.content.logistics.item.filter.ItemAttribute.StandardTraits
- All Implemented Interfaces:
ItemAttribute,Serializable,Comparable<ItemAttribute.StandardTraits>,Constable
- Enclosing interface:
- ItemAttribute
public static enum ItemAttribute.StandardTraits
extends Enum<ItemAttribute.StandardTraits>
implements ItemAttribute
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface com.simibubi.create.content.logistics.item.filter.ItemAttribute
ItemAttribute.AddedBy, ItemAttribute.InItemGroup, ItemAttribute.InTag, ItemAttribute.StandardTraits -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields inherited from interface com.simibubi.create.content.logistics.item.filter.ItemAttribute
addedBy, astralAmulet, astralAttunement, astralCrystal, astralPerkGem, bookAuthor, bookCopy, hasColor, hasEnchant, hasFluid, hasName, inItemGroup, inTag, shulkerFillLevel, standard, types -
Method Summary
Modifier and TypeMethodDescriptionbooleanappliesTo(net.minecraft.world.item.ItemStack stack) booleanappliesTo(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world) listAttributesOf(net.minecraft.world.item.ItemStack stack) listAttributesOf(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world) readNBT(net.minecraft.nbt.CompoundTag nbt) static ItemAttribute.StandardTraitsReturns the enum constant of this class with the specified name.static ItemAttribute.StandardTraits[]values()Returns an array containing the constants of this enum class, in the order they are declared.voidwriteNBT(net.minecraft.nbt.CompoundTag nbt) Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.simibubi.create.content.logistics.item.filter.ItemAttribute
canRead, format, getTranslationParameters, serializeNBT
-
Enum Constant Details
-
DUMMY
-
PLACEABLE
-
CONSUMABLE
-
FLUID_CONTAINER
-
ENCHANTED
-
MAX_ENCHANTED
-
RENAMED
-
DAMAGED
-
BADLY_DAMAGED
-
NOT_STACKABLE
-
EQUIPABLE
-
FURNACE_FUEL
-
WASHABLE
-
CRUSHABLE
-
SMELTABLE
-
SMOKABLE
-
BLASTABLE
-
-
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
-
appliesTo
public boolean appliesTo(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world) - Specified by:
appliesToin interfaceItemAttribute
-
appliesTo
public boolean appliesTo(net.minecraft.world.item.ItemStack stack) - Specified by:
appliesToin interfaceItemAttribute
-
listAttributesOf
public List<ItemAttribute> listAttributesOf(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world) - Specified by:
listAttributesOfin interfaceItemAttribute
-
listAttributesOf
- Specified by:
listAttributesOfin interfaceItemAttribute
-
getTranslationKey
- Specified by:
getTranslationKeyin interfaceItemAttribute
-
getNBTKey
- Specified by:
getNBTKeyin interfaceItemAttribute
-
writeNBT
public void writeNBT(net.minecraft.nbt.CompoundTag nbt) - Specified by:
writeNBTin interfaceItemAttribute
-
readNBT
- Specified by:
readNBTin interfaceItemAttribute
-