Class BoatPaddleStateC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.BoatPaddleStateC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class BoatPaddleStateC2SPacket extends Object implements Packet<ServerPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private booleanleftPaddlingprivate booleanrightPaddling -
Constructor Summary
Constructors Constructor Description BoatPaddleStateC2SPacket()BoatPaddleStateC2SPacket(boolean leftPaddling, boolean rightPaddling) -
Method Summary
Modifier and Type Method Description voidapply(ServerPlayPacketListener serverPlayPacketListener)booleanisLeftPaddling()booleanisRightPaddling()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
leftPaddling
private boolean leftPaddling -
rightPaddling
private boolean rightPaddling
-
-
Constructor Details
-
BoatPaddleStateC2SPacket
public BoatPaddleStateC2SPacket() -
BoatPaddleStateC2SPacket
public BoatPaddleStateC2SPacket(boolean leftPaddling, boolean rightPaddling)
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ServerPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ServerPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>
-
isLeftPaddling
public boolean isLeftPaddling() -
isRightPaddling
public boolean isRightPaddling()
-