Package net.minecraftforge.fml.network
Class FMLHandshakeMessages.S2CRegistry
- java.lang.Object
-
- net.minecraftforge.fml.network.FMLHandshakeMessages.LoginIndexedMessage
-
- net.minecraftforge.fml.network.FMLHandshakeMessages.S2CRegistry
-
- All Implemented Interfaces:
java.util.function.IntSupplier
- Enclosing class:
- FMLHandshakeMessages
public static class FMLHandshakeMessages.S2CRegistry extends FMLHandshakeMessages.LoginIndexedMessage
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceLocation
registryName
private ForgeRegistry.Snapshot
snapshot
-
Constructor Summary
Constructors Constructor Description S2CRegistry(ResourceLocation name, ForgeRegistry.Snapshot snapshot)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FMLHandshakeMessages.S2CRegistry
decode(PacketBuffer buffer)
(package private) void
encode(PacketBuffer buffer)
ResourceLocation
getRegistryName()
ForgeRegistry.Snapshot
getSnapshot()
boolean
hasSnapshot()
-
Methods inherited from class net.minecraftforge.fml.network.FMLHandshakeMessages.LoginIndexedMessage
getAsInt, getLoginIndex, setLoginIndex
-
-
-
-
Field Detail
-
registryName
private ResourceLocation registryName
-
snapshot
@Nullable private ForgeRegistry.Snapshot snapshot
-
-
Constructor Detail
-
S2CRegistry
public S2CRegistry(ResourceLocation name, @Nullable ForgeRegistry.Snapshot snapshot)
-
-
Method Detail
-
encode
void encode(PacketBuffer buffer)
-
decode
public static FMLHandshakeMessages.S2CRegistry decode(PacketBuffer buffer)
-
getRegistryName
public ResourceLocation getRegistryName()
-
hasSnapshot
public boolean hasSnapshot()
-
getSnapshot
@Nullable public ForgeRegistry.Snapshot getSnapshot()
-
-