Class CTBlockIngredient.BlockStateIngredient
java.lang.Object
com.blamejared.crafttweaker.api.block.CTBlockIngredient
com.blamejared.crafttweaker.api.block.CTBlockIngredient.BlockStateIngredient
- All Implemented Interfaces:
CommandStringDisplayable
- Enclosing class:
CTBlockIngredient
-
Nested Class Summary
Nested classes/interfaces inherited from class com.blamejared.crafttweaker.api.block.CTBlockIngredient
CTBlockIngredient.BlockIngredient, CTBlockIngredient.BlockStateIngredient, CTBlockIngredient.BlockTagWithAmountIngredient, CTBlockIngredient.CompoundBlockIngredient -
Constructor Summary
ConstructorsConstructorDescriptionBlockStateIngredient(net.minecraft.world.level.block.state.BlockState blockState) -
Method Summary
Modifier and TypeMethodDescriptionReturns the BEP to get this thingy<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) booleanmatches(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag) booleanmatches(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag, int amount) booleanmatches(net.minecraft.world.level.block.Block block) booleanmatches(net.minecraft.world.level.block.Block block, int amount) booleanmatches(net.minecraft.world.level.block.state.BlockState blockState) booleanmatches(net.minecraft.world.level.block.state.BlockState blockState, int amount) Methods inherited from class com.blamejared.crafttweaker.api.block.CTBlockIngredient
asCompound
-
Constructor Details
-
BlockStateIngredient
public BlockStateIngredient(net.minecraft.world.level.block.state.BlockState blockState)
-
-
Method Details
-
getCommandString
Description copied from interface:CommandStringDisplayableReturns the BEP to get this thingy- Specified by:
getCommandStringin interfaceCommandStringDisplayable- Specified by:
getCommandStringin classCTBlockIngredient
-
matches
public boolean matches(net.minecraft.world.level.block.Block block) - Specified by:
matchesin classCTBlockIngredient
-
matches
public boolean matches(net.minecraft.world.level.block.Block block, int amount) - Specified by:
matchesin classCTBlockIngredient
-
matches
public boolean matches(net.minecraft.world.level.block.state.BlockState blockState) - Specified by:
matchesin classCTBlockIngredient
-
matches
public boolean matches(net.minecraft.world.level.block.state.BlockState blockState, int amount) - Specified by:
matchesin classCTBlockIngredient
-
matches
public boolean matches(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag) - Specified by:
matchesin classCTBlockIngredient
-
matches
public boolean matches(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag, int amount) - Specified by:
matchesin classCTBlockIngredient
-
mapTo
public <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) - Specified by:
mapToin classCTBlockIngredient
-