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
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.MapCodec
<ItemExistsCondition> private final ResourceLocation
Fields inherited from interface net.neoforged.neoforge.common.conditions.ICondition
LIST_CODEC
-
Constructor Summary
ConstructorDescriptionItemExistsCondition
(String location) ItemExistsCondition
(String namespace, String path) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec
<? extends ICondition> codec()
getItem()
boolean
test
(ICondition.IContext context) toString()
-
Field Details
-
CODEC
-
item
-
-
Constructor Details
-
ItemExistsCondition
-
ItemExistsCondition
-
ItemExistsCondition
-
-
Method Details
-
test
- Specified by:
test
in interfaceICondition
-
codec
- Specified by:
codec
in interfaceICondition
-
getItem
-
toString
-