Class ServerboundSetCommandMinecartPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.inventory.ServerboundSetCommandMinecartPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundSetCommandMinecartPacket(int entityId, String command, boolean doesTrackOutput) ServerboundSetCommandMinecartPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintinthashCode()booleanvoidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ServerboundSetCommandMinecartPacketwithCommand(String command) @NonNull ServerboundSetCommandMinecartPacketwithDoesTrackOutput(boolean doesTrackOutput) @NonNull ServerboundSetCommandMinecartPacketwithEntityId(int entityId) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ServerboundSetCommandMinecartPacket
public ServerboundSetCommandMinecartPacket(io.netty.buffer.ByteBuf in) -
ServerboundSetCommandMinecartPacket
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getEntityId
public int getEntityId() -
getCommand
-
isDoesTrackOutput
public boolean isDoesTrackOutput() -
equals
-
canEqual
-
hashCode
-
toString
-
withEntityId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCommand
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDoesTrackOutput
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-