public class BlockStateMatcher
extends java.lang.Object
implements crafttweaker.api.block.IBlockStateMatcher
| Constructor and Description |
|---|
BlockStateMatcher(crafttweaker.api.block.IBlockState blockState) |
BlockStateMatcher(crafttweaker.api.block.IBlockState blockState,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> allowedProperties) |
| Modifier and Type | Method and Description |
|---|---|
crafttweaker.api.block.IBlockStateMatcher |
allowValuesForProperty(java.lang.String name,
java.lang.String... values) |
static crafttweaker.api.block.IBlockStateMatcher |
create(crafttweaker.api.block.IBlockState... blockStates) |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getMatchedProperties() |
java.util.List<java.lang.String> |
getMatchedValuesForProperty(java.lang.String name) |
java.util.Collection<crafttweaker.api.block.IBlockState> |
getMatchingBlockStates() |
boolean |
isCompound() |
boolean |
matches(crafttweaker.api.block.IBlockState stateToMatch) |
crafttweaker.api.block.IBlockStateMatcher |
or(crafttweaker.api.block.IBlockStateMatcher matcher) |
java.lang.String |
toCommandString() |
java.lang.String |
toString() |
crafttweaker.api.block.IBlockStateMatcher |
withMatchedValuesForProperty(java.lang.String name,
java.lang.String... values) |
public BlockStateMatcher(crafttweaker.api.block.IBlockState blockState,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> allowedProperties)
public BlockStateMatcher(crafttweaker.api.block.IBlockState blockState)
public static crafttweaker.api.block.IBlockStateMatcher create(crafttweaker.api.block.IBlockState... blockStates)
public boolean matches(crafttweaker.api.block.IBlockState stateToMatch)
matches in interface crafttweaker.api.block.IBlockStateMatcherpublic crafttweaker.api.block.IBlockStateMatcher or(crafttweaker.api.block.IBlockStateMatcher matcher)
or in interface crafttweaker.api.block.IBlockStateMatcherpublic java.util.Collection<crafttweaker.api.block.IBlockState> getMatchingBlockStates()
getMatchingBlockStates in interface crafttweaker.api.block.IBlockStateMatcherpublic crafttweaker.api.block.IBlockStateMatcher allowValuesForProperty(java.lang.String name,
java.lang.String... values)
allowValuesForProperty in interface crafttweaker.api.block.IBlockStateMatcherpublic crafttweaker.api.block.IBlockStateMatcher withMatchedValuesForProperty(java.lang.String name,
java.lang.String... values)
withMatchedValuesForProperty in interface crafttweaker.api.block.IBlockStateMatcherpublic java.util.List<java.lang.String> getMatchedValuesForProperty(java.lang.String name)
getMatchedValuesForProperty in interface crafttweaker.api.block.IBlockStateMatcherpublic java.util.Map<java.lang.String,java.util.List<java.lang.String>> getMatchedProperties()
getMatchedProperties in interface crafttweaker.api.block.IBlockStateMatcherpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isCompound()
isCompound in interface crafttweaker.api.block.IBlockStateMatcherpublic java.lang.String toCommandString()
toCommandString in interface crafttweaker.api.block.IBlockStateMatcher