Class SendPlayerNbtPacket
java.lang.Object
org.cyclops.cyclopscore.network.PacketBase<SendPlayerNbtPacket>
org.cyclops.cyclopscore.network.PacketCodec<SendPlayerNbtPacket>
org.cyclops.cyclopscore.network.packet.SendPlayerNbtPacket
- All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
public class SendPlayerNbtPacket
extends org.cyclops.cyclopscore.network.PacketCodec<SendPlayerNbtPacket>
Packet from server to client to update persisted player NBT data.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.cyclopscore.network.PacketCodec
org.cyclops.cyclopscore.network.PacketCodec.ICodecActionNested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B extends net.minecraft.network.FriendlyByteBuf>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B extends net.minecraft.network.FriendlyByteBuf,T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, SendPlayerNbtPacket> static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<SendPlayerNbtPacket> Fields inherited from class org.cyclops.cyclopscore.network.PacketCodec
fieldCache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionClient(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player) voidactionServer(net.minecraft.world.level.Level level, net.minecraft.server.level.ServerPlayer player) booleanisAsync()Methods inherited from class org.cyclops.cyclopscore.network.PacketCodec
decode, encodeMethods inherited from class org.cyclops.cyclopscore.network.PacketBase
getCodec, type, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
toVanillaClientbound, toVanillaServerbound
-
Field Details
-
TYPE
public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<SendPlayerNbtPacket> TYPE -
CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,SendPlayerNbtPacket> CODEC
-
-
Constructor Details
-
SendPlayerNbtPacket
public SendPlayerNbtPacket() -
SendPlayerNbtPacket
public SendPlayerNbtPacket(net.minecraft.world.entity.player.Player player)
-
-
Method Details
-
isAsync
public boolean isAsync()- Specified by:
isAsyncin classorg.cyclops.cyclopscore.network.PacketBase<SendPlayerNbtPacket>
-
actionClient
public void actionClient(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player) - Specified by:
actionClientin classorg.cyclops.cyclopscore.network.PacketBase<SendPlayerNbtPacket>
-
actionServer
public void actionServer(net.minecraft.world.level.Level level, net.minecraft.server.level.ServerPlayer player) - Specified by:
actionServerin classorg.cyclops.cyclopscore.network.PacketBase<SendPlayerNbtPacket>
-