Package de.cech12.bucketlib.api.crafting
Class BlockIngredient
java.lang.Object
de.cech12.bucketlib.api.crafting.BlockIngredient
- All Implemented Interfaces:
net.neoforged.neoforge.common.crafting.ICustomIngredient
public class BlockIngredient
extends Object
implements net.neoforged.neoforge.common.crafting.ICustomIngredient
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final net.minecraft.world.level.block.Blockstatic final com.mojang.serialization.MapCodec<BlockIngredient> protected final net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> static final net.neoforged.neoforge.common.crafting.IngredientType<BlockIngredient> -
Constructor Summary
ConstructorsConstructorDescriptionBlockIngredient(Optional<net.minecraft.resources.ResourceLocation> blockOptional, Optional<net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>> tagOptional) BlockIngredient(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag) BlockIngredient(net.minecraft.world.level.block.Block block) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.crafting.ICustomIngredient
display, toVanilla
-
Field Details
-
block
protected final net.minecraft.world.level.block.Block block -
tag
protected final net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag -
CODEC
-
TYPE
-
-
Constructor Details
-
BlockIngredient
-
BlockIngredient
public BlockIngredient(net.minecraft.world.level.block.Block block) -
BlockIngredient
public BlockIngredient(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag)
-
-
Method Details
-
test
public boolean test(@Nonnull net.minecraft.world.item.ItemStack itemStack) - Specified by:
testin interfacenet.neoforged.neoforge.common.crafting.ICustomIngredient
-
items
- Specified by:
itemsin interfacenet.neoforged.neoforge.common.crafting.ICustomIngredient
-
isSimple
public boolean isSimple()- Specified by:
isSimplein interfacenet.neoforged.neoforge.common.crafting.ICustomIngredient
-
getType
@Nonnull public net.neoforged.neoforge.common.crafting.IngredientType<?> getType()- Specified by:
getTypein interfacenet.neoforged.neoforge.common.crafting.ICustomIngredient
-