@Environment(value=CLIENT) public class SimpleMultipartModelSelector extends Object implements MultipartModelSelector
Modifier and Type | Field and Description |
---|---|
private String |
key |
private static Splitter |
VALUE_SPLITTER |
private String |
valueString |
FALSE, TRUE
Constructor and Description |
---|
SimpleMultipartModelSelector(String key,
String valueString) |
Modifier and Type | Method and Description |
---|---|
private Predicate<BlockState> |
createPredicate(StateManager<Block,BlockState> stateFactory,
Property<?> property,
String valueString) |
Predicate<BlockState> |
getPredicate(StateManager<Block,BlockState> stateFactory) |
String |
toString() |
private static final Splitter VALUE_SPLITTER
private final String key
private final String valueString
public Predicate<BlockState> getPredicate(StateManager<Block,BlockState> stateFactory)
getPredicate
in interface MultipartModelSelector
private Predicate<BlockState> createPredicate(StateManager<Block,BlockState> stateFactory, Property<?> property, String valueString)