public final class Blocks
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <B extends BlockStateHolder<B>> |
containsFuzzy(java.util.Collection<? extends BlockStateHolder<?>> collection,
B o)
Checks whether a given block is in a list of base blocks.
|
static java.util.Map<Property<java.lang.Object>,java.lang.Object> |
resolveProperties(java.util.Map<java.lang.String,java.lang.String> states,
BlockType type)
Parses a string->string map to find the matching Property and values for the given BlockType.
|
public static <B extends BlockStateHolder<B>> boolean containsFuzzy(java.util.Collection<? extends BlockStateHolder<?>> collection, B o)
collection
- the collectiono
- the blockpublic static java.util.Map<Property<java.lang.Object>,java.lang.Object> resolveProperties(java.util.Map<java.lang.String,java.lang.String> states, BlockType type)
states
- the desired states and valuestype
- the block type to get properties and values for