类 HandshakeMessages.S2CModList
java.lang.Object
net.minecraftforge.network.HandshakeMessages.LoginIndexedMessage
net.minecraftforge.network.HandshakeMessages.S2CModList
- 所有已实现的接口:
IntSupplier
- 封闭类:
- HandshakeMessages
Server to client "list of mods". Always first handshake message after the data sent by S2CModData.
-
字段概要
字段修饰符和类型字段说明private Map<ResourceLocation,
String> private final List<ResourceKey<? extends Registry<?>>>
private List<ResourceLocation>
-
构造器概要
构造器限定符构造器说明private
S2CModList
(List<String> mods, Map<ResourceLocation, String> channels, List<ResourceLocation> registries, List<ResourceKey<? extends Registry<?>>> dataPackRegistries) -
方法概要
修饰符和类型方法说明static HandshakeMessages.S2CModList
decode
(FriendlyByteBuf input) void
encode
(FriendlyByteBuf output) List<ResourceKey<? extends Registry<?>>>
从类继承的方法 net.minecraftforge.network.HandshakeMessages.LoginIndexedMessage
getAsInt, getLoginIndex, setLoginIndex
-
字段详细资料
-
mods
-
channels
-
registries
-
dataPackRegistries
-
-
构造器详细资料
-
S2CModList
public S2CModList() -
S2CModList
private S2CModList(List<String> mods, Map<ResourceLocation, String> channels, List<ResourceLocation> registries, List<ResourceKey<? extends Registry<?>>> dataPackRegistries)
-
-
方法详细资料
-
decode
-
encode
-
getModList
-
getRegistries
-
getChannels
-
getCustomDataPackRegistries
- 返回:
- list of ids of non-vanilla syncable datapack registries on the server.
-