Class SingletonItemAttribute
java.lang.Object
com.simibubi.create.content.logistics.item.filter.attribute.SingletonItemAttribute
- All Implemented Interfaces:
ItemAttribute
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.simibubi.create.content.logistics.item.filter.attribute.ItemAttribute
ItemAttribute.ItemAttributeEntry -
Field Summary
Fields inherited from interface com.simibubi.create.content.logistics.item.filter.attribute.ItemAttribute
CODEC, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionSingletonItemAttribute(SingletonItemAttribute.Type type, BiPredicate<net.minecraft.world.item.ItemStack, net.minecraft.world.level.Level> predicate, String translationKey) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.simibubi.create.content.logistics.item.filter.attribute.ItemAttribute
format, getTranslationParameters
-
Constructor Details
-
SingletonItemAttribute
public SingletonItemAttribute(SingletonItemAttribute.Type type, BiPredicate<net.minecraft.world.item.ItemStack, net.minecraft.world.level.Level> predicate, String translationKey)
-
-
Method Details
-
appliesTo
public boolean appliesTo(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world) - Specified by:
appliesToin interfaceItemAttribute
-
getType
- Specified by:
getTypein interfaceItemAttribute
-
getTranslationKey
- Specified by:
getTranslationKeyin interfaceItemAttribute
-