Class ServerboundPaddleBoatPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundPaddleBoatPacket
- All Implemented Interfaces:
Packet<ServerGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final boolean
static final StreamCodec
<FriendlyByteBuf, ServerboundPaddleBoatPacket> -
Constructor Summary
ConstructorsModifierConstructorDescriptionServerboundPaddleBoatPacket
(boolean pLeft, boolean pRight) private
ServerboundPaddleBoatPacket
(FriendlyByteBuf p_179702_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getLeft()
boolean
getRight()
void
handle
(ServerGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.type()
private void
write
(FriendlyByteBuf p_134220_) Writes the raw packet data to the data stream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
left
private final boolean left -
right
private final boolean right
-
-
Constructor Details
-
ServerboundPaddleBoatPacket
public ServerboundPaddleBoatPacket(boolean pLeft, boolean pRight) -
ServerboundPaddleBoatPacket
-
-
Method Details
-
write
Writes the raw packet data to the data stream. -
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in interfacePacket<ServerGamePacketListener>
-
type
- Specified by:
type
in interfacePacket<ServerGamePacketListener>
-
getLeft
public boolean getLeft() -
getRight
public boolean getRight()
-