public class ContentExistsCondition
extends java.lang.Object
implements net.minecraftforge.common.crafting.conditions.ICondition
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.util.ResourceLocation |
NAME |
| Constructor and Description |
|---|
ContentExistsCondition(net.minecraftforge.registries.IForgeRegistry<?> forgeRegistry,
net.minecraft.util.ResourceLocation contentName) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.ResourceLocation |
getContentName() |
net.minecraftforge.registries.IForgeRegistry<?> |
getForgeRegistry() |
net.minecraft.util.ResourceLocation |
getID() |
boolean |
test() |
public ContentExistsCondition(net.minecraftforge.registries.IForgeRegistry<?> forgeRegistry,
net.minecraft.util.ResourceLocation contentName)
public net.minecraft.util.ResourceLocation getID()
getID in interface net.minecraftforge.common.crafting.conditions.IConditionpublic boolean test()
test in interface net.minecraftforge.common.crafting.conditions.IConditionpublic net.minecraftforge.registries.IForgeRegistry<?> getForgeRegistry()
public net.minecraft.util.ResourceLocation getContentName()