public static class FMLHandshakeMessages.S2CRegistry extends FMLHandshakeMessages.LoginIndexedMessage
Modifier and Type | Field and Description |
---|---|
private ResourceLocation |
registryName |
private ForgeRegistry.Snapshot |
snapshot |
Constructor and Description |
---|
S2CRegistry(ResourceLocation name,
ForgeRegistry.Snapshot snapshot) |
Modifier and Type | Method and Description |
---|---|
static FMLHandshakeMessages.S2CRegistry |
decode(PacketBuffer buffer) |
(package private) void |
encode(PacketBuffer buffer) |
ResourceLocation |
getRegistryName() |
ForgeRegistry.Snapshot |
getSnapshot() |
boolean |
hasSnapshot() |
getAsInt, getLoginIndex, setLoginIndex
private ResourceLocation registryName
@Nullable private ForgeRegistry.Snapshot snapshot
public S2CRegistry(ResourceLocation name, @Nullable ForgeRegistry.Snapshot snapshot)
void encode(PacketBuffer buffer)
public static FMLHandshakeMessages.S2CRegistry decode(PacketBuffer buffer)
public ResourceLocation getRegistryName()
public boolean hasSnapshot()
@Nullable public ForgeRegistry.Snapshot getSnapshot()