Class CTEntityIngredient

java.lang.Object
com.blamejared.crafttweaker.api.entity.CTEntityIngredient
All Implemented Interfaces:
CommandStringDisplayable
Direct Known Subclasses:
CTEntityIngredient.CompoundEntityIngredient, CTEntityIngredient.EntityTagWithAmountIngredient, CTEntityIngredient.EntityTypeIngredient

@ZenRegister public abstract class CTEntityIngredient extends Object implements CommandStringDisplayable
EntityIngredient that facilitates accepting either a single, or multiple EntityTypes, s or Many<KnownTag<net.minecraft.world.entity.EntityType>>s.
  • Method Details

    • getCommandString

      public abstract String getCommandString()
      Description copied from interface: CommandStringDisplayable
      Returns the BEP to get this thingy
      Specified by:
      getCommandString in interface CommandStringDisplayable
    • matches

      public abstract boolean matches(net.minecraft.world.entity.EntityType<?> type)
    • matches

      public abstract boolean matches(net.minecraft.world.entity.EntityType<?> type, int amount)
    • matches

      public abstract boolean matches(net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> tag)
    • matches

      public abstract boolean matches(net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> tag, int amount)
    • mapTo

      public abstract <T> T mapTo(Function<net.minecraft.world.entity.EntityType<?>,T> typeMapper, BiFunction<net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>,Integer,T> tagMapper, Function<Stream<T>,T> compoundMapper)
    • asCompound

      public CTEntityIngredient asCompound(CTEntityIngredient other)