public class IsFaceVisibleConnectionPredicate extends java.lang.Object implements SensitiveConnectionPredicate
| Modifier and Type | Field and Description |
|---|---|
static Serializer<IsFaceVisibleConnectionPredicate> |
SERIALIZER |
| Constructor and Description |
|---|
IsFaceVisibleConnectionPredicate() |
| Modifier and Type | Method and Description |
|---|---|
Serializer<? extends ConnectionPredicate> |
getSerializer() |
boolean |
shouldConnect(net.minecraft.world.IBlockReader level,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side,
net.minecraft.block.BlockState ownState,
net.minecraft.block.BlockState otherState,
net.minecraft.block.BlockState blockInFront,
ConnectionDirection direction)
Determines whether the model should connect to the given direction.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSensitive, shouldConnectand, negate, orpublic static final Serializer<IsFaceVisibleConnectionPredicate> SERIALIZER
public boolean shouldConnect(net.minecraft.world.IBlockReader level,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction side,
@Nullable
net.minecraft.block.BlockState ownState,
net.minecraft.block.BlockState otherState,
net.minecraft.block.BlockState blockInFront,
ConnectionDirection direction)
ConnectionPredicateConnectionPredicate.shouldConnect(Direction, BlockState, BlockState, BlockState, ConnectionDirection).
If this method should be used, ConnectionPredicate.isSensitive() must return true.shouldConnect in interface ConnectionPredicateshouldConnect in interface SensitiveConnectionPredicateside - 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 directionpublic Serializer<? extends ConnectionPredicate> getSerializer()
getSerializer in interface ConnectionPredicate