Badges update automatically and link to the mod page on MineUniverse.
A library to streamline the process of creating transport networks for any resource.
The library supports the following parameters by default:
Here is a concrete example of how to register a network.
public static final DeferredHolder<TransportNetwork<?>, TransportNetworkImpl<Integer>> MANA_NETWORK = NETWORKS.register("mana",
() -> TransportNetworkImpl.builder(ManaTransportingHandler.INSTANCE)
.synced(ByteBufCodecs.INT)
.lossPerBlock((level, node) -> 1f)
.transferSpeed(TransferSpeed::instant)
.interactorCheck(((level, pos, direction) -> level.getBlockEntity(pos.relative(direction)) instanceof ManaBatteryBlockEntity))
.build());