Class ItemExistsCondition
- java.lang.Object
-
- net.minecraftforge.common.crafting.conditions.ItemExistsCondition
-
- All Implemented Interfaces:
ICondition
public class ItemExistsCondition extends java.lang.Object implements ICondition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ItemExistsCondition.Serializer
-
Field Summary
Fields Modifier and Type Field Description private ResourceLocation
item
private static ResourceLocation
NAME
-
Constructor Summary
Constructors Constructor Description ItemExistsCondition(java.lang.String location)
ItemExistsCondition(java.lang.String namespace, java.lang.String path)
ItemExistsCondition(ResourceLocation item)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLocation
getID()
boolean
test()
java.lang.String
toString()
-
-
-
Field Detail
-
NAME
private static final ResourceLocation NAME
-
item
private final ResourceLocation item
-
-
Constructor Detail
-
ItemExistsCondition
public ItemExistsCondition(java.lang.String location)
-
ItemExistsCondition
public ItemExistsCondition(java.lang.String namespace, java.lang.String path)
-
ItemExistsCondition
public ItemExistsCondition(ResourceLocation item)
-
-
Method Detail
-
getID
public ResourceLocation getID()
- Specified by:
getID
in interfaceICondition
-
test
public boolean test()
- Specified by:
test
in interfaceICondition
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-