Class CTBlockIngredient
java.lang.Object
com.blamejared.crafttweaker.api.block.CTBlockIngredient
- All Implemented Interfaces:
CommandStringDisplayable
- Direct Known Subclasses:
CTBlockIngredient.BlockIngredient,CTBlockIngredient.BlockStateIngredient,CTBlockIngredient.BlockTagWithAmountIngredient,CTBlockIngredient.CompoundBlockIngredient
@ZenRegister
public abstract class CTBlockIngredient
extends Object
implements CommandStringDisplayable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasCompound(CTBlockIngredient other) abstract StringReturns the BEP to get this thingyabstract <T> TmapTo(Function<net.minecraft.world.level.block.Block, T> blockMapper, Function<net.minecraft.world.level.block.state.BlockState, T> blockStateMapper, BiFunction<net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>, Integer, T> tagMapper, Function<Stream<T>, T> compoundMapper) abstract booleanmatches(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag) abstract booleanmatches(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag, int amount) abstract booleanmatches(net.minecraft.world.level.block.Block block) abstract booleanmatches(net.minecraft.world.level.block.Block block, int amount) abstract booleanmatches(net.minecraft.world.level.block.state.BlockState blockState) abstract booleanmatches(net.minecraft.world.level.block.state.BlockState blockState, int amount)
-
Constructor Details
-
CTBlockIngredient
public CTBlockIngredient()
-
-
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.level.block.Block block) -
matches
public abstract boolean matches(net.minecraft.world.level.block.Block block, int amount) -
matches
public abstract boolean matches(net.minecraft.world.level.block.state.BlockState blockState) -
matches
public abstract boolean matches(net.minecraft.world.level.block.state.BlockState blockState, int amount) -
matches
public abstract boolean matches(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag) -
matches
public abstract boolean matches(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag, int amount) -
mapTo
public abstract <T> T mapTo(Function<net.minecraft.world.level.block.Block, T> blockMapper, Function<net.minecraft.world.level.block.state.BlockState, T> blockStateMapper, BiFunction<net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>, Integer, T> tagMapper, Function<Stream<T>, T> compoundMapper) -
asCompound
-