Package de.cech12.bucketlib.api.crafting
Class EntityIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
de.cech12.bucketlib.api.crafting.EntityIngredient
- All Implemented Interfaces:
Predicate<net.minecraft.world.item.ItemStack>
public class EntityIngredient
extends net.minecraft.world.item.crafting.Ingredient
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.crafting.Ingredient
net.minecraft.world.item.crafting.Ingredient.ItemValue, net.minecraft.world.item.crafting.Ingredient.TagValue, net.minecraft.world.item.crafting.Ingredient.Value -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EntityIngredient>protected final net.minecraft.world.entity.EntityType<?>protected final net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>static final net.neoforged.neoforge.common.crafting.IngredientType<EntityIngredient>Fields inherited from class net.minecraft.world.item.crafting.Ingredient
CODEC_NONEMPTY, EMPTY, LIST_CODEC, LIST_CODEC_NONEMPTY, values, VANILLA_CODEC, VANILLA_CODEC_NONEMPTY -
Constructor Summary
ConstructorsConstructorDescriptionEntityIngredient(Optional<net.minecraft.resources.ResourceLocation> blockOptional, Optional<net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>> tagOptional) EntityIngredient(net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> tag) EntityIngredient(net.minecraft.world.entity.EntityType<?> entityType) -
Method Summary
Methods inherited from class net.minecraft.world.item.crafting.Ingredient
areStacksEqual, equals, fromJson, fromNetwork, fromValues, getStackingIds, getType, getValues, of, of, of, of, of, synchronizeWithContents, toNetwork
-
Field Details
-
entityType
protected final net.minecraft.world.entity.EntityType<?> entityType -
tag
protected final net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> tag -
CODEC
-
TYPE
-
-
Constructor Details
-
EntityIngredient
-
EntityIngredient
public EntityIngredient(net.minecraft.world.entity.EntityType<?> entityType) -
EntityIngredient
public EntityIngredient(net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> tag)
-
-
Method Details
-
test
public boolean test(net.minecraft.world.item.ItemStack itemStack) -
getItems
@Nonnull public net.minecraft.world.item.ItemStack[] getItems()- Overrides:
getItemsin classnet.minecraft.world.item.crafting.Ingredient
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classnet.minecraft.world.item.crafting.Ingredient
-
isSimple
public boolean isSimple()- Overrides:
isSimplein classnet.minecraft.world.item.crafting.Ingredient
-