Package net.neoforged.neoforge.network
Class HandshakeMessages.S2CRegistry
java.lang.Object
net.neoforged.neoforge.network.HandshakeMessages.LoginIndexedMessage
net.neoforged.neoforge.network.HandshakeMessages.S2CRegistry
- All Implemented Interfaces:
IntSupplier
,SimpleLoginMessage
,SimpleMessage
- Enclosing class:
- HandshakeMessages
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceLocation
private final @Nullable RegistrySnapshot
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode
(FriendlyByteBuf buffer) void
encode
(FriendlyByteBuf buffer) Encodes this message to thebuffer
.@Nullable RegistrySnapshot
boolean
Methods inherited from class net.neoforged.neoforge.network.HandshakeMessages.LoginIndexedMessage
getLoginIndex, setLoginIndex
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.network.simple.SimpleLoginMessage
getAsInt
Methods inherited from interface net.neoforged.neoforge.network.simple.SimpleMessage
handleMainThread, handleNetworkThread
-
Field Details
-
registryName
-
snapshot
-
-
Constructor Details
-
S2CRegistry
-
-
Method Details
-
encode
Description copied from interface:SimpleMessage
Encodes this message to thebuffer
.- See Also:
-
decode
-
getRegistryName
-
hasSnapshot
public boolean hasSnapshot() -
getSnapshot
-