Class ItemExistsCondition
java.lang.Object
net.neoforged.neoforge.common.conditions.ItemExistsCondition
- All Implemented Interfaces:
ICondition
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.neoforged.neoforge.common.conditions.ICondition
ICondition.IContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.mojang.serialization.MapCodec<ItemExistsCondition> private final ResourceLocationFields inherited from interface net.neoforged.neoforge.common.conditions.ICondition
LIST_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionItemExistsCondition(String location) ItemExistsCondition(String namespace, String path) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends ICondition> codec()getItem()booleantest(ICondition.IContext context) toString()
-
Field Details
-
CODEC
-
item
-
-
Constructor Details
-
ItemExistsCondition
-
ItemExistsCondition
-
ItemExistsCondition
-
-
Method Details
-
test
- Specified by:
testin interfaceICondition
-
codec
- Specified by:
codecin interfaceICondition
-
getItem
-
toString
-