Class EntityIngredient

java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.ingredients.AbstractIngredient
de.cech12.bucketlib.api.crafting.EntityIngredient
All Implemented Interfaces:
Predicate<net.minecraft.world.item.ItemStack>

public class EntityIngredient extends net.minecraftforge.common.crafting.ingredients.AbstractIngredient
  • 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

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<EntityIngredient>
     
    protected final net.minecraft.world.entity.EntityType<?>
     
    static final net.minecraftforge.common.crafting.ingredients.IIngredientSerializer<EntityIngredient>
     
    protected final net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>
     

    Fields inherited from class net.minecraft.world.item.crafting.Ingredient

    CODEC_NONEMPTY, EMPTY, VANILLA_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntityIngredient(Optional<net.minecraft.resources.ResourceLocation> entityTypeOptional, 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

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack[]
     
    protected void
     
    boolean
     
    boolean
     
    net.minecraftforge.common.crafting.ingredients.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient>
     
    boolean
    test(net.minecraft.world.item.ItemStack itemStack)
     

    Methods inherited from class net.minecraftforge.common.crafting.ingredients.AbstractIngredient

    fromNetwork, fromValues, of, of, of, of, of

    Methods inherited from class net.minecraft.world.item.crafting.Ingredient

    checkInvalidation, equals, getStackingIds, invalidateAll, isVanilla, markValid, toNetwork, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • 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

      public static final com.mojang.serialization.Codec<EntityIngredient> CODEC
    • SERIALIZER

      public static final net.minecraftforge.common.crafting.ingredients.IIngredientSerializer<EntityIngredient> SERIALIZER
  • Constructor Details

    • EntityIngredient

      public EntityIngredient(Optional<net.minecraft.resources.ResourceLocation> entityTypeOptional, Optional<net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>> tagOptional)
    • 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)
      Specified by:
      test in interface Predicate<net.minecraft.world.item.ItemStack>
      Overrides:
      test in class net.minecraft.world.item.crafting.Ingredient
    • getItems

      @Nonnull public net.minecraft.world.item.ItemStack[] getItems()
      Overrides:
      getItems in class net.minecraft.world.item.crafting.Ingredient
    • isEmpty

      public boolean isEmpty()
      Overrides:
      isEmpty in class net.minecraft.world.item.crafting.Ingredient
    • isSimple

      public boolean isSimple()
      Specified by:
      isSimple in class net.minecraftforge.common.crafting.ingredients.AbstractIngredient
    • invalidate

      protected void invalidate()
      Overrides:
      invalidate in class net.minecraft.world.item.crafting.Ingredient
    • serializer

      @Nonnull public net.minecraftforge.common.crafting.ingredients.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient> serializer()
      Specified by:
      serializer in class net.minecraftforge.common.crafting.ingredients.AbstractIngredient