Class BlockStateHelper
- java.lang.Object
-
- net.minecraft.block.state.pattern.BlockStateHelper
-
- All Implemented Interfaces:
Predicate<IBlockState>
public class BlockStateHelper extends java.lang.Object implements Predicate<IBlockState>
+ 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)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
apply(IBlockState iblockstate)
Returns the result of applying this predicate toinput
.static BlockStateHelper
forBlock(Block blockIn)
<V extends java.lang.Comparable<V>>
BlockStateHelperwhere(IProperty<V> property, Predicate<? extends V> is)
-
-
-
Method Detail
-
forBlock
public static BlockStateHelper forBlock(Block blockIn)
-
apply
public boolean apply(IBlockState iblockstate)
Description copied from interface:Predicate
Returns the result of applying this predicate toinput
. This method is generally expected, but not absolutely required, to have the following properties:- Its execution does not cause any observable side effects.
- The computation is consistent with equals; that is,
Objects.equal
(a, b)
implies thatpredicate.apply(a) == predicate.apply(b))
.
- Specified by:
apply
in interfacePredicate<IBlockState>
-
where
public <V extends java.lang.Comparable<V>> BlockStateHelper where(IProperty<V> property, Predicate<? extends V> is)
-
-