public final class DefaultConnectionPredicates
extends java.lang.Object
ConnectionPredicates provided by Fusion.
Created 28/04/2023 by SuperMartijn642
| Constructor and Description |
|---|
DefaultConnectionPredicates() |
| Modifier and Type | Method and Description |
|---|---|
static ConnectionPredicate |
and(ConnectionPredicate... predicates)
Combines the given predicates such that all predicates should be satisfied.
|
static ConnectionPredicate |
isSameBlock()
Creates a predicate which is satisfied if the block in the connection direction is the same as the block of the model itself.
|
static ConnectionPredicate |
isSameState()
Creates a predicate which is satisfied if the block state in the connection direction is the same as the block state of the model itself.
|
static ConnectionPredicate |
matchBlock(net.minecraft.block.Block block)
Creates a predicate which is satisfied if the block in the connection direction is the same as the provided block.
|
static ConnectionPredicate |
not(ConnectionPredicate predicate)
Inverts the given predicate.
|
static ConnectionPredicate |
or(ConnectionPredicate... predicates)
Combines the given predicates such that at least one predicate should be satisfied.
|
public static ConnectionPredicate and(ConnectionPredicate... predicates)
predicates - predicates which need to be satisfiedpublic static ConnectionPredicate or(ConnectionPredicate... predicates)
predicates - predicates of which any must be satisfiedpublic static ConnectionPredicate not(ConnectionPredicate predicate)
predicate - predicate of which the inverse will be takenpublic static ConnectionPredicate isSameBlock()
public static ConnectionPredicate isSameState()
public static ConnectionPredicate matchBlock(net.minecraft.block.Block block)
block - block which should be matched