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