Class MatchBlockConnectionPredicate
java.lang.Object
com.supermartijn642.fusion.predicate.MatchBlockConnectionPredicate
- All Implemented Interfaces:
ConnectionPredicate
Created 28/04/2023 by SuperMartijn642
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSerializer<? extends ConnectionPredicate>booleanshouldConnect(net.minecraft.core.Direction side, @Nullable net.minecraft.world.level.block.state.BlockState ownState, net.minecraft.world.level.block.state.BlockState otherState, net.minecraft.world.level.block.state.BlockState blockInFront, ConnectionDirection direction) Determines whether the model should connect to the given direction.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.supermartijn642.fusion.api.predicate.ConnectionPredicate
and, isSensitive, negate, or, shouldConnect
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
MatchBlockConnectionPredicate
public MatchBlockConnectionPredicate(net.minecraft.world.level.block.Block block)
-
-
Method Details
-
shouldConnect
public boolean shouldConnect(net.minecraft.core.Direction side, @Nullable @Nullable net.minecraft.world.level.block.state.BlockState ownState, net.minecraft.world.level.block.state.BlockState otherState, net.minecraft.world.level.block.state.BlockState blockInFront, ConnectionDirection direction) Description copied from interface:ConnectionPredicateDetermines whether the model should connect to the given direction.- Specified by:
shouldConnectin interfaceConnectionPredicate- Parameters:
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 ofotherstatedirection- direction to check- Returns:
trueif the texture should connect in the given direction
-
getSerializer
- Specified by:
getSerializerin interfaceConnectionPredicate- Returns:
- the serializer for this predicate
-