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.PacketTypeProviderNested 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 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, ServerSpeedProvider.Packet> -
Method Summary
Modifier and TypeMethodDescriptionnet.createmod.catnip.net.base.BasePacketPayload.PacketTypeProvidervoidhandle(net.minecraft.client.player.LocalPlayer player) static ServerSpeedProvider.PacketReturns the enum constant of this class with the specified name.static ServerSpeedProvider.Packet[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface net.createmod.catnip.net.base.BasePacketPayload
typeMethods inherited from interface net.createmod.catnip.net.base.ClientboundPacketPayload
handleInternalMethods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
toVanillaClientbound, toVanillaServerbound
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,ServerSpeedProvider.Packet> STREAM_CODEC
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
handle
public void handle(net.minecraft.client.player.LocalPlayer player) - Specified by:
handlein interfacenet.createmod.catnip.net.base.ClientboundPacketPayload
-
getTypeProvider
public net.createmod.catnip.net.base.BasePacketPayload.PacketTypeProvider getTypeProvider()- Specified by:
getTypeProviderin interfacenet.createmod.catnip.net.base.BasePacketPayload
-