Class ServerboundPaddleBoatPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundPaddleBoatPacket
- All Implemented Interfaces:
Packet<ServerGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final booleanstatic final StreamCodec<FriendlyByteBuf, ServerboundPaddleBoatPacket> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetLeft()booleangetRight()voidhandle(ServerGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.type()private voidwrite(FriendlyByteBuf pBuffer) 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, waitMethods 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:
handlein interfacePacket<ServerGamePacketListener>
-
type
- Specified by:
typein interfacePacket<ServerGamePacketListener>
-
getLeft
public boolean getLeft() -
getRight
public boolean getRight()
-