Class PlayerVarsSyncPacket
-
- All Implemented Interfaces:
-
net.minecraft.network.protocol.common.custom.CustomPacketPayload
public final class PlayerVarsSyncPacket extends CodecPacket<PlayerVarsSyncPacket, PlayerVariables>
-
-
Field Summary
Fields Modifier and Type Field Description private final ResourceLocation
id
private final CustomPacketPayload.Type<PlayerVarsSyncPacket>
packetType
private PlayerVariables
data
private final Codec<PlayerVariables>
codec
-
Constructor Summary
Constructors Constructor Description PlayerVarsSyncPacket()
-
Method Summary
Modifier and Type Method Description ResourceLocation
getId()
PlayerVarsSyncPacket
factory()
Unit
handle(PlayerVariables data, IPayloadContext cx)
-
Methods inherited from class dev.wendigodrip.thebrokenscript.api.network.CodecPacket
getCodec, getData, getPacketType, handle, of, read, setData, type, write
-
Methods inherited from class net.minecraft.network.protocol.common.custom.CustomPacketPayload
toVanillaClientbound, toVanillaServerbound
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getId
ResourceLocation getId()
-
factory
PlayerVarsSyncPacket factory()
-
handle
Unit handle(PlayerVariables data, IPayloadContext cx)
-
-
-
-