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
  • Constructor Details

    • CTBlockIngredient

      public CTBlockIngredient()
  • 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.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

      public CTBlockIngredient asCompound(CTBlockIngredient other)