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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionasCompound(CTEntityIngredient other) abstract StringReturns the BEP to get this thingyabstract <T> TmapTo(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) abstract booleanmatches(net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> tag) abstract booleanmatches(net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> tag, int amount) abstract booleanmatches(net.minecraft.world.entity.EntityType<?> type) abstract booleanmatches(net.minecraft.world.entity.EntityType<?> type, int amount)
-
Method Details
-
getCommandString
Description copied from interface:CommandStringDisplayableReturns the BEP to get this thingy- Specified by:
getCommandStringin interfaceCommandStringDisplayable
-
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
-