Class PluginMessageClientboundSetConfig
java.lang.Object
wtf.choco.veinminer.network.protocol.clientbound.PluginMessageClientboundSetConfig
- All Implemented Interfaces:
PluginMessage<ClientboundPluginMessageListener>
public final class PluginMessageClientboundSetConfig
extends Object
implements PluginMessage<ClientboundPluginMessageListener>
A client bound
PluginMessage
including the following data:
- byte: A bitmask containing 3 booleans determining the client configuration
-
Constructor Summary
ConstructorDescriptionPluginMessageClientboundSetConfig
(@NotNull ClientConfig config) Construct a newPluginMessageClientboundSetConfig
.PluginMessageClientboundSetConfig
(@NotNull PluginMessageByteBuffer buffer) Construct a newPluginMessageClientboundSetConfig
with input. -
Method Summary
Modifier and TypeMethodDescription@NotNull ClientConfig
Get theClientConfig
that was sent.void
handle
(@NotNull ClientboundPluginMessageListener listener) Handle this message.void
write
(@NotNull PluginMessageByteBuffer buffer) Write this plugin message to the providedPluginMessageByteBuffer
.
-
Constructor Details
-
PluginMessageClientboundSetConfig
Construct a newPluginMessageClientboundSetConfig
.- Parameters:
config
- the config to send
-
PluginMessageClientboundSetConfig
@Internal public PluginMessageClientboundSetConfig(@NotNull @NotNull PluginMessageByteBuffer buffer) Construct a newPluginMessageClientboundSetConfig
with input.- Parameters:
buffer
- the input buffer
-
-
Method Details
-
getConfig
Get theClientConfig
that was sent.- Returns:
- the client config
-
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
-