Package net.nullved.pmweatherapi.network
Class S2CRangeUpgradePacket
java.lang.Object
net.nullved.pmweatherapi.network.S2CStoragePacket<RangeUpgradeClientStorage>
net.nullved.pmweatherapi.network.S2CRangeUpgradePacket
- All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
The packet that syncs range upgrade modules from the server to the client, using the Storages system
- Since:
- 0.16.4.0
-
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, S2CRangeUpgradePacket> static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<S2CRangeUpgradePacket> Fields inherited from class net.nullved.pmweatherapi.network.S2CStoragePacket
tag -
Constructor Summary
ConstructorsConstructorDescriptionS2CRangeUpgradePacket(net.minecraft.nbt.CompoundTag tag) Creates a newS2CRangeUpgradePacket -
Method Summary
Modifier and TypeMethodDescriptionGets theIClientStoragethat will be synced to.net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<S2CRangeUpgradePacket> 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<S2CRangeUpgradePacket> TYPE -
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,S2CRangeUpgradePacket> STREAM_CODEC
-
-
Constructor Details
-
S2CRangeUpgradePacket
public S2CRangeUpgradePacket(net.minecraft.nbt.CompoundTag tag) Creates a newS2CRangeUpgradePacket- Parameters:
tag- TheCompoundTagto send with the packet- Since:
- 0.16.4.0
-
-
Method Details
-
getStorage
Description copied from class:S2CStoragePacketGets theIClientStoragethat will be synced to.- Specified by:
getStoragein classS2CStoragePacket<RangeUpgradeClientStorage>- Returns:
- The storage to be synced.
-
type
public net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<S2CRangeUpgradePacket> type()- Specified by:
typein interfacenet.minecraft.network.protocol.common.custom.CustomPacketPayload- Specified by:
typein classS2CStoragePacket<RangeUpgradeClientStorage>
-