Interface ILaserRelayConnectionHandler


public interface ILaserRelayConnectionHandler
This is the internal laser relay connection handler. Use ActuallyAdditionsAPI.connectionHandler for calling This is not supposed to be implemented.

The network system is built in a way that doesn't need the individual positions to be Laser Relays, it relies only on BlockPos

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addConnection(net.minecraft.core.BlockPos firstRelay, net.minecraft.core.BlockPos secondRelay, LaserType type, net.minecraft.world.level.Level world)
     
    boolean
    addConnection(net.minecraft.core.BlockPos firstRelay, net.minecraft.core.BlockPos secondRelay, LaserType type, net.minecraft.world.level.Level world, boolean suppressConnectionRender)
     
    boolean
    addConnection(net.minecraft.core.BlockPos firstRelay, net.minecraft.core.BlockPos secondRelay, LaserType type, net.minecraft.world.level.Level world, boolean suppressConnectionRender, boolean removeIfConnected)
     
    io.netty.util.internal.ConcurrentSet<IConnectionPair>
    getConnectionsFor(net.minecraft.core.BlockPos relay, net.minecraft.world.level.Level world)
     
    getNetworkFor(net.minecraft.core.BlockPos relay, net.minecraft.world.level.Level world)
     
    getTypeFromLaser(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level world)
     
    getTypeFromLaser(net.minecraft.world.level.block.entity.BlockEntity tile)
     
    void
    removeConnection(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos firstRelay, net.minecraft.core.BlockPos secondRelay)
     
    void
    removeRelayFromNetwork(net.minecraft.core.BlockPos relay, net.minecraft.world.level.Level world)
     
  • Method Details

    • getConnectionsFor

      io.netty.util.internal.ConcurrentSet<IConnectionPair> getConnectionsFor(net.minecraft.core.BlockPos relay, net.minecraft.world.level.Level world)
    • removeRelayFromNetwork

      void removeRelayFromNetwork(net.minecraft.core.BlockPos relay, net.minecraft.world.level.Level world)
    • getNetworkFor

      Network getNetworkFor(net.minecraft.core.BlockPos relay, net.minecraft.world.level.Level world)
    • addConnection

      boolean addConnection(net.minecraft.core.BlockPos firstRelay, net.minecraft.core.BlockPos secondRelay, LaserType type, net.minecraft.world.level.Level world)
    • addConnection

      boolean addConnection(net.minecraft.core.BlockPos firstRelay, net.minecraft.core.BlockPos secondRelay, LaserType type, net.minecraft.world.level.Level world, boolean suppressConnectionRender)
    • addConnection

      boolean addConnection(net.minecraft.core.BlockPos firstRelay, net.minecraft.core.BlockPos secondRelay, LaserType type, net.minecraft.world.level.Level world, boolean suppressConnectionRender, boolean removeIfConnected)
    • removeConnection

      void removeConnection(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos firstRelay, net.minecraft.core.BlockPos secondRelay)
    • getTypeFromLaser

      LaserType getTypeFromLaser(net.minecraft.world.level.block.entity.BlockEntity tile)
    • getTypeFromLaser

      LaserType getTypeFromLaser(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level world)