public interface ConnectionPredicate
Created 27/04/2023 by SuperMartijn642
| Modifier and Type | Method and Description |
|---|---|
default ConnectionPredicate |
and(ConnectionPredicate... predicates)
Adds a requirement to this predicate.
|
Serializer<? extends ConnectionPredicate> |
getSerializer() |
default ConnectionPredicate |
negate()
Negates the output of this resource condition.
|
default ConnectionPredicate |
or(ConnectionPredicate... predicates)
Adds an alternative to this predicate.
|
boolean |
shouldConnect(net.minecraft.util.EnumFacing side,
net.minecraft.block.state.IBlockState ownState,
net.minecraft.block.state.IBlockState otherState,
net.minecraft.block.state.IBlockState blockInFront,
ConnectionDirection direction)
Determines whether the model should connect to the given direction.
|
boolean shouldConnect(net.minecraft.util.EnumFacing side,
@Nullable
net.minecraft.block.state.IBlockState ownState,
net.minecraft.block.state.IBlockState otherState,
net.minecraft.block.state.IBlockState blockInFront,
ConnectionDirection direction)
side - side of the block which the relevant texture is onownState - state of the block itselfotherState - state of the block in the connection directionblockInFront - state in front of otherstatedirection - direction to checktrue if the texture should connect in the given directionSerializer<? extends ConnectionPredicate> getSerializer()
default ConnectionPredicate and(ConnectionPredicate... predicates)
default ConnectionPredicate or(ConnectionPredicate... predicates)
default ConnectionPredicate negate()