Interface SensitiveConnectionPredicate

All Superinterfaces:
ConnectionPredicate
All Known Implementing Classes:
IsFaceVisibleConnectionPredicate

public interface SensitiveConnectionPredicate extends ConnectionPredicate
Convenience extension for ConnectionPredicate which by default makes the connection predicate sensitive.

Created 22/02/2024 by SuperMartijn642

  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Determines whether this connection predicate depends on the level and should always be reevaluated.
    default boolean
    shouldConnect(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.
    boolean
    shouldConnect(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, 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 interface com.supermartijn642.fusion.api.predicate.ConnectionPredicate

    and, getSerializer, negate, or