Enum Class ServerSpeedProvider.Packet

java.lang.Object
java.lang.Enum<ServerSpeedProvider.Packet>
com.simibubi.create.foundation.utility.ServerSpeedProvider.Packet
All Implemented Interfaces:
Serializable, Comparable<ServerSpeedProvider.Packet>, Constable, net.createmod.catnip.net.base.BasePacketPayload, net.createmod.catnip.net.base.ClientboundPacketPayload, net.minecraft.network.protocol.common.custom.CustomPacketPayload
Enclosing class:
ServerSpeedProvider

public static enum ServerSpeedProvider.Packet extends Enum<ServerSpeedProvider.Packet> implements net.createmod.catnip.net.base.ClientboundPacketPayload
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>

    Nested classes/interfaces inherited from interface net.createmod.catnip.net.base.BasePacketPayload

    net.createmod.catnip.net.base.BasePacketPayload.PacketTypeProvider

    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>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,ServerSpeedProvider.Packet>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.createmod.catnip.net.base.BasePacketPayload.PacketTypeProvider
     
    void
    handle(net.minecraft.client.player.LocalPlayer player)
     
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.createmod.catnip.net.base.BasePacketPayload

    type

    Methods inherited from interface net.createmod.catnip.net.base.ClientboundPacketPayload

    handleInternal

    Methods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload

    toVanillaClientbound, toVanillaServerbound
  • Enum Constant Details

  • Field Details

    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,ServerSpeedProvider.Packet> STREAM_CODEC
  • Method Details

    • values

      public static ServerSpeedProvider.Packet[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ServerSpeedProvider.Packet valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • handle

      public void handle(net.minecraft.client.player.LocalPlayer player)
      Specified by:
      handle in interface net.createmod.catnip.net.base.ClientboundPacketPayload
    • getTypeProvider

      public net.createmod.catnip.net.base.BasePacketPayload.PacketTypeProvider getTypeProvider()
      Specified by:
      getTypeProvider in interface net.createmod.catnip.net.base.BasePacketPayload