Class AnyMatchRuleTest

java.lang.Object
net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest
dev.latvian.mods.kubejs.level.ruletest.AnyMatchRuleTest

public class AnyMatchRuleTest extends net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<AnyMatchRuleTest>
     
    final List<net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    AnyMatchRuleTest(List<net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest> rules)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected net.minecraft.world.level.levelgen.structure.templatesystem.RuleTestType<?>
     
    boolean
    test(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.util.RandomSource random)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<AnyMatchRuleTest> CODEC
    • rules

      public final List<net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest> rules
  • Constructor Details

    • AnyMatchRuleTest

      public AnyMatchRuleTest()
    • AnyMatchRuleTest

      public AnyMatchRuleTest(List<net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest> rules)
  • Method Details

    • test

      public boolean test(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.util.RandomSource random)
      Specified by:
      test in class net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest
    • getType

      protected net.minecraft.world.level.levelgen.structure.templatesystem.RuleTestType<?> getType()
      Specified by:
      getType in class net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest