public class SyncableFieldPacket extends java.lang.Object implements INetworkMessage
Modifier and Type | Field and Description |
---|---|
net.minecraft.util.math.BlockPos |
blockPosition |
int |
id |
boolean |
returnValue |
double |
value |
Constructor and Description |
---|
SyncableFieldPacket()
Stub to allow registration
|
SyncableFieldPacket(boolean ping,
int i,
double v,
net.minecraft.util.math.BlockPos pos)
Creates the packet
|
Modifier and Type | Method and Description |
---|---|
void |
decode(net.minecraft.network.PacketBuffer buf)
IMessage *
|
void |
encode(net.minecraft.network.PacketBuffer buf) |
static void |
process(SyncableFieldPacket message,
java.util.function.Supplier<net.minecraftforge.fml.network.NetworkEvent.Context> ctx)
IMessageHandler *
|
public boolean returnValue
public int id
public double value
public net.minecraft.util.math.BlockPos blockPosition
public SyncableFieldPacket()
public SyncableFieldPacket(boolean ping, int i, double v, net.minecraft.util.math.BlockPos pos)
ping
- Send value backi
- The field idv
- The valuepos
- The position 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(SyncableFieldPacket message, java.util.function.Supplier<net.minecraftforge.fml.network.NetworkEvent.Context> ctx)