public class CustomPayloadS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
static Identifier |
BRAND |
private Identifier |
channel |
private PacketByteBuf |
data |
static Identifier |
DEBUG_BEE |
static Identifier |
DEBUG_BRAIN |
static Identifier |
DEBUG_CAVES |
static Identifier |
DEBUG_GAME_TEST_ADD_MARKER |
static Identifier |
DEBUG_GAME_TEST_CLEAR |
static Identifier |
DEBUG_GOAL_SELECTOR |
static Identifier |
DEBUG_HIVE |
static Identifier |
DEBUG_NEIGHBORS_UPDATE |
static Identifier |
DEBUG_PATH |
static Identifier |
DEBUG_POI_ADDED |
static Identifier |
DEBUG_POI_REMOVED |
static Identifier |
DEBUG_POI_TICKET_COUNT |
static Identifier |
DEBUG_RAIDS |
static Identifier |
DEBUG_STRUCTURES |
static Identifier |
DEBUG_VILLAGE_SECTIONS |
static Identifier |
DEBUG_WORLDGEN_ATTEMPT |
Constructor and Description |
---|
CustomPayloadS2CPacket() |
CustomPayloadS2CPacket(Identifier channel,
PacketByteBuf data) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
Identifier |
getChannel() |
PacketByteBuf |
getData() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
public static final Identifier BRAND
public static final Identifier DEBUG_PATH
public static final Identifier DEBUG_NEIGHBORS_UPDATE
public static final Identifier DEBUG_CAVES
public static final Identifier DEBUG_STRUCTURES
public static final Identifier DEBUG_WORLDGEN_ATTEMPT
public static final Identifier DEBUG_POI_TICKET_COUNT
public static final Identifier DEBUG_POI_ADDED
public static final Identifier DEBUG_POI_REMOVED
public static final Identifier DEBUG_VILLAGE_SECTIONS
public static final Identifier DEBUG_GOAL_SELECTOR
public static final Identifier DEBUG_BRAIN
public static final Identifier DEBUG_BEE
public static final Identifier DEBUG_HIVE
public static final Identifier DEBUG_GAME_TEST_ADD_MARKER
public static final Identifier DEBUG_GAME_TEST_CLEAR
public static final Identifier DEBUG_RAIDS
private Identifier channel
private PacketByteBuf data
public CustomPayloadS2CPacket()
public CustomPayloadS2CPacket(Identifier channel, PacketByteBuf data)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public Identifier getChannel()
@Environment(value=CLIENT) public PacketByteBuf getData()