Class PluginMessageServerboundSelectPattern
java.lang.Object
wtf.choco.veinminer.network.protocol.serverbound.PluginMessageServerboundSelectPattern
- All Implemented Interfaces:
PluginMessage<ServerboundPluginMessageListener>
public final class PluginMessageServerboundSelectPattern
extends Object
implements PluginMessage<ServerboundPluginMessageListener>
A server bound
PluginMessage
including the following data:
- NamespacedKey: The key of the pattern the client wishes to select
-
Constructor Summary
ConstructorDescriptionPluginMessageServerboundSelectPattern
(@NotNull PluginMessageByteBuffer buffer) Construct a newPluginMessageServerboundSelectPattern
with input.PluginMessageServerboundSelectPattern
(@NotNull NamespacedKey patternKey) Construct a newPluginMessageServerboundSelectPattern
. -
Method Summary
Modifier and TypeMethodDescriptionGet theNamespacedKey
of the pattern the client wants to change to.void
handle
(@NotNull ServerboundPluginMessageListener listener) Handle this message.void
write
(@NotNull PluginMessageByteBuffer buffer) Write this plugin message to the providedPluginMessageByteBuffer
.
-
Constructor Details
-
PluginMessageServerboundSelectPattern
Construct a newPluginMessageServerboundSelectPattern
.- Parameters:
patternKey
- theNamespacedKey
of the pattern to select
-
PluginMessageServerboundSelectPattern
@Internal public PluginMessageServerboundSelectPattern(@NotNull @NotNull PluginMessageByteBuffer buffer) Construct a newPluginMessageServerboundSelectPattern
with input.- Parameters:
buffer
- the input buffer
-
-
Method Details
-
getPatternKey
Get theNamespacedKey
of the pattern the client wants to change to.- Returns:
- the pattern key
-
write
Description copied from interface:PluginMessage
Write this plugin message to the providedPluginMessageByteBuffer
.- Specified by:
write
in interfacePluginMessage<ServerboundPluginMessageListener>
- Parameters:
buffer
- the buffer to which data should be written
-
handle
Description copied from interface:PluginMessage
Handle this message.- Specified by:
handle
in interfacePluginMessage<ServerboundPluginMessageListener>
- Parameters:
listener
- the plugin message listener
-