public class BlockPattern
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
BlockPattern.CacheLoader |
static class |
BlockPattern.PatternHelper |
static class |
BlockPattern.PortalInfo |
Modifier and Type | Field and Description |
---|---|
private java.util.function.Predicate<CachedBlockInfo>[][][] |
blockMatches |
private int |
fingerLength |
private int |
palmLength |
private int |
thumbLength |
Constructor and Description |
---|
BlockPattern(java.util.function.Predicate<CachedBlockInfo>[][][] predicates) |
Modifier and Type | Method and Description |
---|---|
private BlockPattern.PatternHelper |
checkPatternAt(BlockPos pos,
Direction finger,
Direction thumb,
com.google.common.cache.LoadingCache<BlockPos,CachedBlockInfo> lcache) |
static com.google.common.cache.LoadingCache<BlockPos,CachedBlockInfo> |
createLoadingCache(IWorldReader worldIn,
boolean forceLoadIn) |
int |
getFingerLength() |
int |
getPalmLength() |
int |
getThumbLength() |
BlockPattern.PatternHelper |
match(IWorldReader worldIn,
BlockPos pos) |
protected static BlockPos |
translateOffset(BlockPos pos,
Direction finger,
Direction thumb,
int palmOffset,
int thumbOffset,
int fingerOffset) |
private final java.util.function.Predicate<CachedBlockInfo>[][][] blockMatches
private final int fingerLength
private final int thumbLength
private final int palmLength
public BlockPattern(java.util.function.Predicate<CachedBlockInfo>[][][] predicates)
public int getFingerLength()
public int getThumbLength()
public int getPalmLength()
@Nullable private BlockPattern.PatternHelper checkPatternAt(BlockPos pos, Direction finger, Direction thumb, com.google.common.cache.LoadingCache<BlockPos,CachedBlockInfo> lcache)
@Nullable public BlockPattern.PatternHelper match(IWorldReader worldIn, BlockPos pos)
public static com.google.common.cache.LoadingCache<BlockPos,CachedBlockInfo> createLoadingCache(IWorldReader worldIn, boolean forceLoadIn)