Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
961 B · 56 lines
C
at main
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556#pragma once
#include "Packet.h"
class ChatAutoCompletePacket : public Packet{#if 0 private String message;
public ChatAutoCompletePacket() {
} public ChatAutoCompletePacket(String message) { this.message = message; }
@Override public void read(DataInputStream dis) throws IOException { message = readUtf(dis, ChatPacket.MAX_LENGTH); }
@Override public void write(DataOutputStream dos) throws IOException { writeUtf(message, dos); }
@Override public void handle(PacketListener listener) { listener.handleChatAutoComplete(this); }
@Override public int getEstimatedSize() { return 2 + message.length() * 2; }
public String getMessage() { return message; }
@Override public String getDebugInfo() { return String.format("message='%s'", message); }
@Override public boolean canBeInvalidated() { return true; }
@Override public boolean isInvalidatedBy(Packet packet) { return true; }#endif};