Transport-Lib 图标

Transport-Lib

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.3
本资源为搬运资源,原资源地址: https://modrinth.com/mod/transport-lib
资源信息

Minecraft 版本: 1.21.1

平台: neoforge

标签: library transportation

资源介绍

Transport Lib

A library to streamline the process of creating transport networks for any resource.

The library supports the following parameters by default:

  • Resource loss per block (Energy loss, Fluids leaking…)
  • Custom Transport Handlers for merging/splitting resources
  • Syncing resource amounts to the client for visual display
  • Accessing resources in cables through block capabilities (WIP)

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());
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Vulpincraft

价格:0 墨喵币
下载量:0

查看详情
TimeSet

价格:0 墨喵币
下载量:0

查看详情
Bare Bones x Netherite stone

价格:0 墨喵币
下载量:0

查看详情
Hardest Core

价格:0 墨喵币
下载量:0

查看详情