Class S2CMetarPacket

All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload

public class S2CMetarPacket extends S2CStoragePacket<MetarClientStorage>
The packet that syncs metars 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

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,S2CMetarPacket>
     
    static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<S2CMetarPacket>
     

    Fields inherited from class net.nullved.pmweatherapi.network.S2CStoragePacket

    tag
  • Constructor Summary

    Constructors
    Constructor
    Description
    S2CMetarPacket(net.minecraft.nbt.CompoundTag tag)
    Creates a new S2CMetarPacket
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the MetarClientStorage that is receiving data
    net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<? extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
     

    Methods inherited from class net.nullved.pmweatherapi.network.S2CStoragePacket

    handle, tag, write

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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<S2CMetarPacket> TYPE
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,S2CMetarPacket> STREAM_CODEC
  • Constructor Details

    • S2CMetarPacket

      public S2CMetarPacket(net.minecraft.nbt.CompoundTag tag)
      Creates a new S2CMetarPacket
      Parameters:
      tag - The CompoundTag to send with the packet
      Since:
      0.15.3.3
  • Method Details