Package net.minecraft.block.pattern
Class BlockPattern
java.lang.Object
net.minecraft.block.pattern.BlockPattern
public class BlockPattern extends Object
- Mappings:
Namespace Name official chy
intermediary net/minecraft/class_2700
named net/minecraft/block/pattern/BlockPattern
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
BlockPattern.BlockStateCacheLoader
static class
BlockPattern.Result
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BlockPattern(Predicate<CachedBlockPosition>[][][] pattern)
-
Method Summary
Modifier and Type Method Description int
getDepth()
int
getHeight()
int
getWidth()
static LoadingCache<BlockPos,CachedBlockPosition>
makeCache(WorldView world, boolean forceLoad)
BlockPattern.Result
searchAround(WorldView world, BlockPos pos)
private BlockPattern.Result
testTransform(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos,CachedBlockPosition> cache)
protected static BlockPos
translate(BlockPos pos, Direction forwards, Direction up, int offsetLeft, int offsetDown, int offsetForwards)
-
Field Details
-
pattern
- Mappings:
Namespace Name Mixin selector official a
Lchy;a:[[[Ljava/util/function/Predicate;
intermediary field_12358
Lnet/minecraft/class_2700;field_12358:[[[Ljava/util/function/Predicate;
named pattern
Lnet/minecraft/block/pattern/BlockPattern;pattern:[[[Ljava/util/function/Predicate;
-
depth
private final int depth- Mappings:
Namespace Name Mixin selector official b
Lchy;b:I
intermediary field_12357
Lnet/minecraft/class_2700;field_12357:I
named depth
Lnet/minecraft/block/pattern/BlockPattern;depth:I
-
height
private final int height- Mappings:
Namespace Name Mixin selector official c
Lchy;c:I
intermediary field_12356
Lnet/minecraft/class_2700;field_12356:I
named height
Lnet/minecraft/block/pattern/BlockPattern;height:I
-
width
private final int width- Mappings:
Namespace Name Mixin selector official d
Lchy;d:I
intermediary field_12355
Lnet/minecraft/class_2700;field_12355:I
named width
Lnet/minecraft/block/pattern/BlockPattern;width:I
-
-
Constructor Details
-
BlockPattern
- Mappings:
Namespace Name Mixin selector official <init>
Lchy;<init>([[[Ljava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_2700;<init>([[[Ljava/util/function/Predicate;)V
named <init>
Lnet/minecraft/block/pattern/BlockPattern;<init>([[[Ljava/util/function/Predicate;)V
-
-
Method Details
-
getDepth
public int getDepth()- Mappings:
Namespace Name Mixin selector official a
Lchy;a()I
intermediary method_11712
Lnet/minecraft/class_2700;method_11712()I
named getDepth
Lnet/minecraft/block/pattern/BlockPattern;getDepth()I
-
getHeight
public int getHeight()- Mappings:
Namespace Name Mixin selector official b
Lchy;b()I
intermediary method_11713
Lnet/minecraft/class_2700;method_11713()I
named getHeight
Lnet/minecraft/block/pattern/BlockPattern;getHeight()I
-
getWidth
public int getWidth()- Mappings:
Namespace Name Mixin selector official c
Lchy;c()I
intermediary method_11710
Lnet/minecraft/class_2700;method_11710()I
named getWidth
Lnet/minecraft/block/pattern/BlockPattern;getWidth()I
-
testTransform
@Nullable private BlockPattern.Result testTransform(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos,CachedBlockPosition> cache)- Mappings:
Namespace Name Mixin selector official a
Lchy;a(Lfx;Lgc;Lgc;Lcom/google/common/cache/LoadingCache;)Lchy$b;
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;
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;
-
searchAround
- Mappings:
Namespace Name Mixin selector official a
Lchy;a(Lbty;Lfx;)Lchy$b;
intermediary method_11708
Lnet/minecraft/class_2700;method_11708(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2700$class_2702;
named searchAround
Lnet/minecraft/block/pattern/BlockPattern;searchAround(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/pattern/BlockPattern$Result;
-
makeCache
public static LoadingCache<BlockPos,CachedBlockPosition> makeCache(WorldView world, boolean forceLoad)- Mappings:
Namespace Name Mixin selector official a
Lchy;a(Lbty;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;
named makeCache
Lnet/minecraft/block/pattern/BlockPattern;makeCache(Lnet/minecraft/world/WorldView;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 official a
Lchy;a(Lfx;Lgc;Lgc;III)Lfx;
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;
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;
-