public class ClientOverridePacket extends java.lang.Object implements INetworkMessage
Modifier and Type | Field and Description |
---|---|
net.minecraft.util.math.BlockPos |
blockPosition |
net.minecraft.nbt.CompoundNBT |
tag |
Constructor and Description |
---|
ClientOverridePacket()
Stub to allow registration
|
ClientOverridePacket(net.minecraft.util.math.BlockPos pos,
net.minecraft.nbt.CompoundNBT nbt)
Creates a packet with the given info
|
Modifier and Type | Method and Description |
---|---|
void |
decode(net.minecraft.network.PacketBuffer buf)
IMessage *
|
void |
encode(net.minecraft.network.PacketBuffer buf) |
static void |
process(ClientOverridePacket message,
java.util.function.Supplier<net.minecraftforge.fml.network.NetworkEvent.Context> ctx)
IMessageHandler *
|
public net.minecraft.util.math.BlockPos blockPosition
public net.minecraft.nbt.CompoundNBT tag
public ClientOverridePacket()
public ClientOverridePacket(net.minecraft.util.math.BlockPos pos, net.minecraft.nbt.CompoundNBT nbt)
pos
- The position to write the tagnbt
- The tag to writepublic void decode(net.minecraft.network.PacketBuffer buf)
decode
in interface INetworkMessage
public void encode(net.minecraft.network.PacketBuffer buf)
encode
in interface INetworkMessage
public static void process(ClientOverridePacket message, java.util.function.Supplier<net.minecraftforge.fml.network.NetworkEvent.Context> ctx)