Package net.nullved.pmweatherapi.network
Class S2CWSRPacket
java.lang.Object
net.nullved.pmweatherapi.network.S2CStoragePacket<WSRClientStorage>
net.nullved.pmweatherapi.network.S2CWSRPacket
- All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
The packet that syncs wsrs from the server to the client, using the Storages system
- Since:
- 0.15.3.3
-
Nested Class Summary
Nested 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, S2CWSRPacket> static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<S2CWSRPacket> Fields inherited from class net.nullved.pmweatherapi.network.S2CStoragePacket
tag -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theWSRClientStoragethat is receiving datanet.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<? extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> type()Methods inherited from class net.nullved.pmweatherapi.network.S2CStoragePacket
handle, tag, 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<S2CWSRPacket> TYPE -
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,S2CWSRPacket> STREAM_CODEC
-
-
Constructor Details
-
S2CWSRPacket
public S2CWSRPacket(net.minecraft.nbt.CompoundTag tag) Creates a newS2CWSRPacket- Parameters:
tag- TheCompoundTagto send with the packet- Since:
- 0.15.3.3
-
-
Method Details
-
getStorage
Gets theWSRClientStoragethat is receiving data- Specified by:
getStoragein classS2CStoragePacket<WSRClientStorage>- Returns:
- The
WSRClientStorage - Since:
- 0.15.3.3
-
type
public net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<? extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> type()
-