Class BlockPattern
- java.lang.Object
-
- net.minecraft.block.state.pattern.BlockPattern
-
public class BlockPattern extends java.lang.Object
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlockPattern.PatternHelper
-
Constructor Summary
Constructors Constructor Description BlockPattern(Predicate<BlockWorldState>[][][] predicatesIn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EaglerLoadingCache<BlockPos,BlockWorldState>
func_181627_a(World parWorld, boolean parFlag)
int
getPalmLength()
int
getThumbLength()
BlockPattern.PatternHelper
match(World worldIn, BlockPos pos)
+ Calculates whether the given world position matches the pattern.protected static BlockPos
translateOffset(BlockPos pos, EnumFacing finger, EnumFacing thumb, int palmOffset, int thumbOffset, int fingerOffset)
+ Offsets the position of pos in the direction of finger and thumb facing by offset amounts, follows the right-hand rule for cross products (finger, thumb, palm) @return A new BlockPos offset in the facing directions
-
-
-
Constructor Detail
-
BlockPattern
public BlockPattern(Predicate<BlockWorldState>[][][] predicatesIn)
-
-
Method Detail
-
getThumbLength
public int getThumbLength()
-
getPalmLength
public int getPalmLength()
-
match
public BlockPattern.PatternHelper match(World worldIn, BlockPos pos)
+ Calculates whether the given world position matches the pattern. Warning, fairly heavy function. @return a BlockPattern.PatternHelper if found, null otherwise.
-
func_181627_a
public static EaglerLoadingCache<BlockPos,BlockWorldState> func_181627_a(World parWorld, boolean parFlag)
-
translateOffset
protected static BlockPos translateOffset(BlockPos pos, EnumFacing finger, EnumFacing thumb, int palmOffset, int thumbOffset, int fingerOffset)
+ Offsets the position of pos in the direction of finger and thumb facing by offset amounts, follows the right-hand rule for cross products (finger, thumb, palm) @return A new BlockPos offset in the facing directions
-
-