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 ResourceLocationprivate final @Nullable RegistrySnapshot -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(FriendlyByteBuf buffer) voidencode(FriendlyByteBuf buffer) Encodes this message to thebuffer.@Nullable RegistrySnapshotbooleanMethods inherited from class net.neoforged.neoforge.network.HandshakeMessages.LoginIndexedMessage
getLoginIndex, setLoginIndexMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.network.simple.SimpleLoginMessage
getAsIntMethods 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:SimpleMessageEncodes this message to thebuffer.- See Also:
-
decode
-
getRegistryName
-
hasSnapshot
public boolean hasSnapshot() -
getSnapshot
-