Class ServerboundSetCommandMinecartPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.inventory.ServerboundSetCommandMinecartPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundSetCommandMinecartPacket(int entityId, @NonNull String command, boolean doesTrackOutput) ServerboundSetCommandMinecartPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull StringintinthashCode()booleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ServerboundSetCommandMinecartPacketwithCommand(@NonNull String command) @NonNull ServerboundSetCommandMinecartPacketwithDoesTrackOutput(boolean doesTrackOutput) @NonNull ServerboundSetCommandMinecartPacketwithEntityId(int entityId) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ServerboundSetCommandMinecartPacket
-
ServerboundSetCommandMinecartPacket
public ServerboundSetCommandMinecartPacket(int entityId, @NonNull @NonNull String command, boolean doesTrackOutput)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getEntityId
public int getEntityId() -
getCommand
-
isDoesTrackOutput
public boolean isDoesTrackOutput() -
equals
-
canEqual
-
hashCode
public int 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).
-