Class PluginMessageServerboundRequestVeinMine
java.lang.Object
wtf.choco.veinminer.network.protocol.serverbound.PluginMessageServerboundRequestVeinMine
- All Implemented Interfaces:
PluginMessage<ServerboundPluginMessageListener>
public final class PluginMessageServerboundRequestVeinMine
extends Object
implements PluginMessage<ServerboundPluginMessageListener>
A server bound
PluginMessage
including the following data:
- BlockPosition: the block position at which to vein mine
-
Constructor Summary
ConstructorDescriptionPluginMessageServerboundRequestVeinMine
(int x, int y, int z) Construct a newPluginMessageServerboundRequestVeinMine
.PluginMessageServerboundRequestVeinMine
(@NotNull PluginMessageByteBuffer buffer) Construct a newPluginMessageServerboundRequestVeinMine
with input.PluginMessageServerboundRequestVeinMine
(@NotNull BlockPosition position) Construct a newPluginMessageServerboundRequestVeinMine
. -
Method Summary
Modifier and TypeMethodDescription@NotNull BlockPosition
Get the originBlockPosition
.void
handle
(@NotNull ServerboundPluginMessageListener listener) Handle this message.void
write
(@NotNull PluginMessageByteBuffer buffer) Write this plugin message to the providedPluginMessageByteBuffer
.
-
Constructor Details
-
PluginMessageServerboundRequestVeinMine
Construct a newPluginMessageServerboundRequestVeinMine
.- Parameters:
position
- the origin
-
PluginMessageServerboundRequestVeinMine
public PluginMessageServerboundRequestVeinMine(int x, int y, int z) Construct a newPluginMessageServerboundRequestVeinMine
.- Parameters:
x
- the x coordinate of the originy
- the y coordinate of the originz
- the z coordinate of the origin
-
PluginMessageServerboundRequestVeinMine
@Internal public PluginMessageServerboundRequestVeinMine(@NotNull @NotNull PluginMessageByteBuffer buffer) Construct a newPluginMessageServerboundRequestVeinMine
with input.- Parameters:
buffer
- the input buffer
-
-
Method Details
-
getPosition
Get the originBlockPosition
.- Returns:
- the origin position
-
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
-