Package net.minecraft.network
Record Class NetworkStateBuilder.NetworkStateImpl<L extends PacketListener>
java.lang.Object
java.lang.Record
net.minecraft.network.NetworkStateBuilder.NetworkStateImpl<L>
- Record Components:
id
-flow
-codec
-bundlerInfo
-
- All Implemented Interfaces:
NetworkState<L>
- Enclosing class:
NetworkStateBuilder<T extends PacketListener,
B extends ByteBuf>
private static record NetworkStateBuilder.NetworkStateImpl<L extends PacketListener>(NetworkPhase id, NetworkSide flow, PacketCodec<ByteBuf,Packet<? super L extends PacketListener>> codec, @Nullable PacketBundleHandler bundlerInfo)
extends Record
implements NetworkState<L>
- Mappings:
Namespace Name official yc$b
intermediary net/minecraft/class_9147$class_9149
named net/minecraft/network/NetworkStateBuilder$NetworkStateImpl
official a
intermediary comp_2234
named id
official b
intermediary comp_2235
named flow
official c
intermediary comp_2236
named codec
official d
intermediary comp_2237
named bundlerInfo
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.NetworkState
NetworkState.Factory<T extends PacketListener,
B extends ByteBuf> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable PacketBundleHandler
The field for thebundlerInfo
record component.private final PacketCodec<ByteBuf,
Packet<? super L>> The field for thecodec
record component.private final NetworkSide
The field for theflow
record component.private final NetworkPhase
The field for theid
record component. -
Constructor Summary
ConstructorsConstructorDescriptionNetworkStateImpl
(NetworkPhase networkPhase, NetworkSide networkSide, PacketCodec<ByteBuf, Packet<? super L>> packetCodec, @Nullable PacketBundleHandler packetBundleHandler) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebundlerInfo
record component.PacketCodec<ByteBuf,
Packet<? super L>> codec()
final boolean
Indicates whether some other object is "equal to" this one.flow()
Returns the value of theflow
record component.final int
hashCode()
Returns a hash code value for this object.id()
side()
final String
toString()
Returns a string representation of this record class.
-
Field Details
-
id
The field for theid
record component. -
flow
The field for theflow
record component. -
codec
The field for thecodec
record component. -
bundlerInfo
The field for thebundlerInfo
record component.
-
-
Constructor Details
-
NetworkStateImpl
NetworkStateImpl(NetworkPhase networkPhase, NetworkSide networkSide, PacketCodec<ByteBuf, Packet<? super L>> packetCodec, @Nullable @Nullable PacketBundleHandler packetBundleHandler)
-
-
Method Details
-
bundleHandler
- Specified by:
bundleHandler
in interfaceNetworkState<L extends PacketListener>
- Mappings:
Namespace Name Mixin selector official d
Luy;d()Lxw;
intermediary comp_2237
Lnet/minecraft/class_9127;comp_2237()Lnet/minecraft/class_8039;
named bundleHandler
Lnet/minecraft/network/NetworkState;bundleHandler()Lnet/minecraft/network/handler/PacketBundleHandler;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
id
- Specified by:
id
in interfaceNetworkState<L extends PacketListener>
- Mappings:
Namespace Name Mixin selector official a
Luy;a()Lup;
intermediary comp_2234
Lnet/minecraft/class_9127;comp_2234()Lnet/minecraft/class_2539;
named id
Lnet/minecraft/network/NetworkState;id()Lnet/minecraft/network/NetworkPhase;
-
side
- Specified by:
side
in interfaceNetworkState<L extends PacketListener>
- Mappings:
Namespace Name Mixin selector official b
Luy;b()Lxy;
intermediary comp_2235
Lnet/minecraft/class_9127;comp_2235()Lnet/minecraft/class_2598;
named side
Lnet/minecraft/network/NetworkState;side()Lnet/minecraft/network/NetworkSide;
-
codec
- Specified by:
codec
in interfaceNetworkState<L extends PacketListener>
- Mappings:
Namespace Name Mixin selector official c
Luy;c()Lxo;
intermediary comp_2236
Lnet/minecraft/class_9127;comp_2236()Lnet/minecraft/class_9139;
named codec
Lnet/minecraft/network/NetworkState;codec()Lnet/minecraft/network/codec/PacketCodec;
-
flow
Returns the value of theflow
record component.- Returns:
- the value of the
flow
record component
-
bundlerInfo
Returns the value of thebundlerInfo
record component.- Returns:
- the value of the
bundlerInfo
record component
-