Interface BlockPredicate

All Superinterfaces:
BiPredicate<StructureWorldAccess,BlockPos>
All Known Implementing Classes:
AllOfBlockPredicate, AlwaysTrueBlockPredicate, AnyOfBlockPredicate, CombinedBlockPredicate, HasSturdyFacePredicate, InsideWorldBoundsBlockPredicate, MatchingBlocksBlockPredicate, MatchingBlockTagPredicate, MatchingFluidsBlockPredicate, NotBlockPredicate, OffsetPredicate, ReplaceableBlockPredicate, SolidBlockPredicate, WouldSurviveBlockPredicate

public interface BlockPredicate extends BiPredicate<StructureWorldAccess,BlockPos>
Mappings:
Namespace Name
official cui
intermediary net/minecraft/class_6646
named net/minecraft/world/gen/blockpredicate/BlockPredicate
  • Field Details

    • BASE_CODEC

      static final com.mojang.serialization.Codec<BlockPredicate> BASE_CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Lcui;b:Lcom/mojang/serialization/Codec;
      intermediary field_35054 Lnet/minecraft/class_6646;field_35054:Lcom/mojang/serialization/Codec;
      named BASE_CODEC Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;BASE_CODEC:Lcom/mojang/serialization/Codec;
    • IS_AIR

      static final BlockPredicate IS_AIR
      Mappings:
      Namespace Name Mixin selector
      official c Lcui;c:Lcui;
      intermediary field_35696 Lnet/minecraft/class_6646;field_35696:Lnet/minecraft/class_6646;
      named IS_AIR Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;IS_AIR:Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • IS_AIR_OR_WATER

      static final BlockPredicate IS_AIR_OR_WATER
      Mappings:
      Namespace Name Mixin selector
      official d Lcui;d:Lcui;
      intermediary field_35697 Lnet/minecraft/class_6646;field_35697:Lnet/minecraft/class_6646;
      named IS_AIR_OR_WATER Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;IS_AIR_OR_WATER:Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
  • Method Details

    • getType

      BlockPredicateType<?> getType()
      Mappings:
      Namespace Name Mixin selector
      official a Lcui;a()Lcuj;
      intermediary method_38873 Lnet/minecraft/class_6646;method_38873()Lnet/minecraft/class_6647;
      named getType Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;getType()Lnet/minecraft/world/gen/blockpredicate/BlockPredicateType;
    • allOf

      static BlockPredicate allOf(List<BlockPredicate> predicates)
      Mappings:
      Namespace Name Mixin selector
      official a Lcui;a(Ljava/util/List;)Lcui;
      intermediary method_38880 Lnet/minecraft/class_6646;method_38880(Ljava/util/List;)Lnet/minecraft/class_6646;
      named allOf Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;allOf(Ljava/util/List;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • allOf

      static BlockPredicate allOf(BlockPredicate[] predicates)
      Mappings:
      Namespace Name Mixin selector
      official a Lcui;a([Lcui;)Lcui;
      intermediary method_38882 Lnet/minecraft/class_6646;method_38882([Lnet/minecraft/class_6646;)Lnet/minecraft/class_6646;
      named allOf Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;allOf([Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • bothOf

      static BlockPredicate bothOf(BlockPredicate first, BlockPredicate second)
      Mappings:
      Namespace Name Mixin selector
      official a Lcui;a(Lcui;Lcui;)Lcui;
      intermediary method_38878 Lnet/minecraft/class_6646;method_38878(Lnet/minecraft/class_6646;Lnet/minecraft/class_6646;)Lnet/minecraft/class_6646;
      named bothOf Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;bothOf(Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • anyOf

      static BlockPredicate anyOf(List<BlockPredicate> predicates)
      Mappings:
      Namespace Name Mixin selector
      official b Lcui;b(Ljava/util/List;)Lcui;
      intermediary method_38885 Lnet/minecraft/class_6646;method_38885(Ljava/util/List;)Lnet/minecraft/class_6646;
      named anyOf Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;anyOf(Ljava/util/List;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • anyOf

      static BlockPredicate anyOf(BlockPredicate[] predicates)
      Mappings:
      Namespace Name Mixin selector
      official b Lcui;b([Lcui;)Lcui;
      intermediary method_38887 Lnet/minecraft/class_6646;method_38887([Lnet/minecraft/class_6646;)Lnet/minecraft/class_6646;
      named anyOf Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;anyOf([Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • eitherOf

      static BlockPredicate eitherOf(BlockPredicate first, BlockPredicate second)
      Mappings:
      Namespace Name Mixin selector
      official b Lcui;b(Lcui;Lcui;)Lcui;
      intermediary method_38884 Lnet/minecraft/class_6646;method_38884(Lnet/minecraft/class_6646;Lnet/minecraft/class_6646;)Lnet/minecraft/class_6646;
      named eitherOf Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;eitherOf(Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • matchingBlocks

      static BlockPredicate matchingBlocks(List<Block> blocks, Vec3i offset)
      Mappings:
      Namespace Name Mixin selector
      official a Lcui;a(Ljava/util/List;Lhc;)Lcui;
      intermediary method_38881 Lnet/minecraft/class_6646;method_38881(Ljava/util/List;Lnet/minecraft/class_2382;)Lnet/minecraft/class_6646;
      named matchingBlocks Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;matchingBlocks(Ljava/util/List;Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • matchingBlocks

      static BlockPredicate matchingBlocks(List<Block> blocks)
      Mappings:
      Namespace Name Mixin selector
      official c Lcui;c(Ljava/util/List;)Lcui;
      intermediary method_39910 Lnet/minecraft/class_6646;method_39910(Ljava/util/List;)Lnet/minecraft/class_6646;
      named matchingBlocks Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;matchingBlocks(Ljava/util/List;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • matchingBlock

      static BlockPredicate matchingBlock(Block block, Vec3i offset)
      Mappings:
      Namespace Name Mixin selector
      official a Lcui;a(Lccy;Lhc;)Lcui;
      intermediary method_38876 Lnet/minecraft/class_6646;method_38876(Lnet/minecraft/class_2248;Lnet/minecraft/class_2382;)Lnet/minecraft/class_6646;
      named matchingBlock Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;matchingBlock(Lnet/minecraft/block/Block;Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • matchingBlockTag

      static BlockPredicate matchingBlockTag(Tag<Block> tag, Vec3i offset)
      Mappings:
      Namespace Name Mixin selector
      official a Lcui;a(Lahr;Lhc;)Lcui;
      intermediary method_39908 Lnet/minecraft/class_6646;method_39908(Lnet/minecraft/class_3494;Lnet/minecraft/class_2382;)Lnet/minecraft/class_6646;
      named matchingBlockTag Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;matchingBlockTag(Lnet/minecraft/tag/Tag;Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • matchingBlockTag

      static BlockPredicate matchingBlockTag(Tag<Block> offset)
      Mappings:
      Namespace Name Mixin selector
      official a Lcui;a(Lahr;)Lcui;
      intermediary method_39907 Lnet/minecraft/class_6646;method_39907(Lnet/minecraft/class_3494;)Lnet/minecraft/class_6646;
      named matchingBlockTag Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;matchingBlockTag(Lnet/minecraft/tag/Tag;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • matchingFluids

      static BlockPredicate matchingFluids(List<Fluid> fluids, Vec3i offset)
      Mappings:
      Namespace Name Mixin selector
      official b Lcui;b(Ljava/util/List;Lhc;)Lcui;
      intermediary method_38886 Lnet/minecraft/class_6646;method_38886(Ljava/util/List;Lnet/minecraft/class_2382;)Lnet/minecraft/class_6646;
      named matchingFluids Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;matchingFluids(Ljava/util/List;Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • matchingFluid

      static BlockPredicate matchingFluid(Fluid fluid, Vec3i offset)
      Mappings:
      Namespace Name Mixin selector
      official a Lcui;a(Ldhu;Lhc;)Lcui;
      intermediary method_38879 Lnet/minecraft/class_6646;method_38879(Lnet/minecraft/class_3611;Lnet/minecraft/class_2382;)Lnet/minecraft/class_6646;
      named matchingFluid Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;matchingFluid(Lnet/minecraft/fluid/Fluid;Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • not

      static BlockPredicate not(BlockPredicate predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lcui;a(Lcui;)Lcui;
      intermediary method_38877 Lnet/minecraft/class_6646;method_38877(Lnet/minecraft/class_6646;)Lnet/minecraft/class_6646;
      named not Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;not(Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • replaceable

      static BlockPredicate replaceable(Vec3i offset)
      Mappings:
      Namespace Name Mixin selector
      official a Lcui;a(Lhc;)Lcui;
      intermediary method_39010 Lnet/minecraft/class_6646;method_39010(Lnet/minecraft/class_2382;)Lnet/minecraft/class_6646;
      named replaceable Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;replaceable(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • replaceable

      static BlockPredicate replaceable()
      Mappings:
      Namespace Name Mixin selector
      official b Lcui;b()Lcui;
      intermediary method_38883 Lnet/minecraft/class_6646;method_38883()Lnet/minecraft/class_6646;
      named replaceable Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;replaceable()Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • wouldSurvive

      static BlockPredicate wouldSurvive(BlockState state, Vec3i offset)
      Mappings:
      Namespace Name Mixin selector
      official a Lcui;a(Lcoc;Lhc;)Lcui;
      intermediary method_39009 Lnet/minecraft/class_6646;method_39009(Lnet/minecraft/class_2680;Lnet/minecraft/class_2382;)Lnet/minecraft/class_6646;
      named wouldSurvive Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;wouldSurvive(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • hasSturdyFace

      static BlockPredicate hasSturdyFace(Vec3i offset, Direction face)
      Mappings:
      Namespace Name Mixin selector
      official a Lcui;a(Lhc;Lgm;)Lcui;
      intermediary method_39909 Lnet/minecraft/class_6646;method_39909(Lnet/minecraft/class_2382;Lnet/minecraft/class_2350;)Lnet/minecraft/class_6646;
      named hasSturdyFace Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;hasSturdyFace(Lnet/minecraft/util/math/Vec3i;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • hasSturdyFace

      static BlockPredicate hasSturdyFace(Direction face)
      Mappings:
      Namespace Name Mixin selector
      official a Lcui;a(Lgm;)Lcui;
      intermediary method_39930 Lnet/minecraft/class_6646;method_39930(Lnet/minecraft/class_2350;)Lnet/minecraft/class_6646;
      named hasSturdyFace Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;hasSturdyFace(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • solid

      static BlockPredicate solid(Vec3i offset)
      Mappings:
      Namespace Name Mixin selector
      official b Lcui;b(Lhc;)Lcui;
      intermediary method_39584 Lnet/minecraft/class_6646;method_39584(Lnet/minecraft/class_2382;)Lnet/minecraft/class_6646;
      named solid Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;solid(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • solid

      static BlockPredicate solid()
      Mappings:
      Namespace Name Mixin selector
      official c Lcui;c()Lcui;
      intermediary method_39585 Lnet/minecraft/class_6646;method_39585()Lnet/minecraft/class_6646;
      named solid Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;solid()Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • insideWorldBounds

      static BlockPredicate insideWorldBounds(Vec3i offset)
      Mappings:
      Namespace Name Mixin selector
      official c Lcui;c(Lhc;)Lcui;
      intermediary method_39586 Lnet/minecraft/class_6646;method_39586(Lnet/minecraft/class_2382;)Lnet/minecraft/class_6646;
      named insideWorldBounds Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;insideWorldBounds(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;
    • alwaysTrue

      static BlockPredicate alwaysTrue()
      Mappings:
      Namespace Name Mixin selector
      official d Lcui;d()Lcui;
      intermediary method_39011 Lnet/minecraft/class_6646;method_39011()Lnet/minecraft/class_6646;
      named alwaysTrue Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;alwaysTrue()Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;