Enum Class BlockStatePredicate.Simple

java.lang.Object
java.lang.Enum<BlockStatePredicate.Simple>
dev.latvian.mods.kubejs.block.state.BlockStatePredicate.Simple
All Implemented Interfaces:
BlockStatePredicate, ReplacementMatch, Serializable, Comparable<BlockStatePredicate.Simple>, Constable, Predicate<net.minecraft.world.level.block.state.BlockState>
Enclosing interface:
BlockStatePredicate

public static enum BlockStatePredicate.Simple extends Enum<BlockStatePredicate.Simple> implements BlockStatePredicate
  • Enum Constant Details

  • Method Details

    • values

      public static BlockStatePredicate.Simple[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BlockStatePredicate.Simple valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • test

      public boolean test(net.minecraft.world.level.block.state.BlockState state)
      Specified by:
      test in interface BlockStatePredicate
      Specified by:
      test in interface Predicate<net.minecraft.world.level.block.state.BlockState>
    • testBlock

      public boolean testBlock(net.minecraft.world.level.block.Block block)
      Specified by:
      testBlock in interface BlockStatePredicate
    • asRuleTest

      public net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest asRuleTest()
      Specified by:
      asRuleTest in interface BlockStatePredicate
    • getBlockStates

      public Collection<net.minecraft.world.level.block.state.BlockState> getBlockStates()
      Specified by:
      getBlockStates in interface BlockStatePredicate