public class IsSameBlockConnectionPredicate extends java.lang.Object implements ConnectionPredicate
| Modifier and Type | Field and Description |
|---|---|
static Serializer<IsSameBlockConnectionPredicate> |
SERIALIZER |
| Constructor and Description |
|---|
IsSameBlockConnectionPredicate() |
| Modifier and Type | Method and Description |
|---|---|
Serializer<? extends ConnectionPredicate> |
getSerializer() |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, negate, orpublic static final Serializer<IsSameBlockConnectionPredicate> SERIALIZER
public 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)
ConnectionPredicateshouldConnect in interface ConnectionPredicateside - 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