Class BlockPattern

java.lang.Object
net.minecraft.block.pattern.BlockPattern

public class BlockPattern extends Object
Mappings:
Namespace Name
named net/minecraft/block/pattern/BlockPattern
intermediary net/minecraft/class_2700
official dxz
  • Field Details

    • pattern

      private final Predicate<CachedBlockPosition>[][][] pattern
      Mappings:
      Namespace Name Mixin selector
      named pattern Lnet/minecraft/block/pattern/BlockPattern;pattern:[[[Ljava/util/function/Predicate;
      intermediary field_12358 Lnet/minecraft/class_2700;field_12358:[[[Ljava/util/function/Predicate;
      official a Ldxz;a:[[[Ljava/util/function/Predicate;
    • depth

      private final int depth
      Mappings:
      Namespace Name Mixin selector
      named depth Lnet/minecraft/block/pattern/BlockPattern;depth:I
      intermediary field_12357 Lnet/minecraft/class_2700;field_12357:I
      official b Ldxz;b:I
    • height

      private final int height
      Mappings:
      Namespace Name Mixin selector
      named height Lnet/minecraft/block/pattern/BlockPattern;height:I
      intermediary field_12356 Lnet/minecraft/class_2700;field_12356:I
      official c Ldxz;c:I
    • width

      private final int width
      Mappings:
      Namespace Name Mixin selector
      named width Lnet/minecraft/block/pattern/BlockPattern;width:I
      intermediary field_12355 Lnet/minecraft/class_2700;field_12355:I
      official d Ldxz;d:I
  • Constructor Details

    • BlockPattern

      public BlockPattern(Predicate<CachedBlockPosition>[][][] pattern)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/pattern/BlockPattern;<init>([[[Ljava/util/function/Predicate;)V
      intermediary <init> Lnet/minecraft/class_2700;<init>([[[Ljava/util/function/Predicate;)V
      official <init> Ldxz;<init>([[[Ljava/util/function/Predicate;)V
  • Method Details

    • getDepth

      public int getDepth()
      Mappings:
      Namespace Name Mixin selector
      named getDepth Lnet/minecraft/block/pattern/BlockPattern;getDepth()I
      intermediary method_11712 Lnet/minecraft/class_2700;method_11712()I
      official a Ldxz;a()I
    • getHeight

      public int getHeight()
      Mappings:
      Namespace Name Mixin selector
      named getHeight Lnet/minecraft/block/pattern/BlockPattern;getHeight()I
      intermediary method_11713 Lnet/minecraft/class_2700;method_11713()I
      official b Ldxz;b()I
    • getWidth

      public int getWidth()
      Mappings:
      Namespace Name Mixin selector
      named getWidth Lnet/minecraft/block/pattern/BlockPattern;getWidth()I
      intermediary method_11710 Lnet/minecraft/class_2700;method_11710()I
      official c Ldxz;c()I
    • getPattern

      public Predicate<CachedBlockPosition>[][][] getPattern()
      Mappings:
      Namespace Name Mixin selector
      named getPattern Lnet/minecraft/block/pattern/BlockPattern;getPattern()[[[Ljava/util/function/Predicate;
      intermediary method_35301 Lnet/minecraft/class_2700;method_35301()[[[Ljava/util/function/Predicate;
      official d Ldxz;d()[[[Ljava/util/function/Predicate;
    • testTransform

      @Nullable public @Nullable BlockPattern.Result testTransform(WorldView world, BlockPos frontTopLeft, Direction forwards, Direction up)
      Mappings:
      Namespace Name Mixin selector
      named testTransform Lnet/minecraft/block/pattern/BlockPattern;testTransform(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/block/pattern/BlockPattern$Result;
      intermediary method_35300 Lnet/minecraft/class_2700;method_35300(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2350;)Lnet/minecraft/class_2700$class_2702;
      official a Ldxz;a(Ldhk;Ljh;Ljm;Ljm;)Ldxz$b;
    • testTransform

      @Nullable private @Nullable BlockPattern.Result testTransform(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos,CachedBlockPosition> cache)
      Mappings:
      Namespace Name Mixin selector
      named testTransform Lnet/minecraft/block/pattern/BlockPattern;testTransform(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/Direction;Lcom/google/common/cache/LoadingCache;)Lnet/minecraft/block/pattern/BlockPattern$Result;
      intermediary method_11711 Lnet/minecraft/class_2700;method_11711(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2350;Lcom/google/common/cache/LoadingCache;)Lnet/minecraft/class_2700$class_2702;
      official a Ldxz;a(Ljh;Ljm;Ljm;Lcom/google/common/cache/LoadingCache;)Ldxz$b;
    • searchAround

      @Nullable public @Nullable BlockPattern.Result searchAround(WorldView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named searchAround Lnet/minecraft/block/pattern/BlockPattern;searchAround(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/pattern/BlockPattern$Result;
      intermediary method_11708 Lnet/minecraft/class_2700;method_11708(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2700$class_2702;
      official a Ldxz;a(Ldhk;Ljh;)Ldxz$b;
    • makeCache

      public static LoadingCache<BlockPos,CachedBlockPosition> makeCache(WorldView world, boolean forceLoad)
      Mappings:
      Namespace Name Mixin selector
      named makeCache Lnet/minecraft/block/pattern/BlockPattern;makeCache(Lnet/minecraft/world/WorldView;Z)Lcom/google/common/cache/LoadingCache;
      intermediary method_11709 Lnet/minecraft/class_2700;method_11709(Lnet/minecraft/class_4538;Z)Lcom/google/common/cache/LoadingCache;
      official a Ldxz;a(Ldhk;Z)Lcom/google/common/cache/LoadingCache;
    • translate

      protected static BlockPos translate(BlockPos pos, Direction forwards, Direction up, int offsetLeft, int offsetDown, int offsetForwards)
      Mappings:
      Namespace Name Mixin selector
      named translate Lnet/minecraft/block/pattern/BlockPattern;translate(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/Direction;III)Lnet/minecraft/util/math/BlockPos;
      intermediary method_11707 Lnet/minecraft/class_2700;method_11707(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2350;III)Lnet/minecraft/class_2338;
      official a Ldxz;a(Ljh;Ljm;Ljm;III)Ljh;