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$bintermediary net/minecraft/class_9147$class_9149named net/minecraft/network/NetworkStateBuilder$NetworkStateImplofficial aintermediary comp_2234named idofficial bintermediary comp_2235named flowofficial cintermediary comp_2236named codecofficial dintermediary comp_2237named 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 PacketBundleHandlerThe field for thebundlerInforecord component.private final PacketCodec<ByteBuf,Packet<? super L>> The field for thecodecrecord component.private final NetworkSideThe field for theflowrecord component.private final NetworkPhaseThe field for theidrecord 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 thebundlerInforecord component.PacketCodec<ByteBuf,Packet<? super L>> codec()final booleanIndicates whether some other object is "equal to" this one.flow()Returns the value of theflowrecord component.final inthashCode()Returns a hash code value for this object.id()side()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
flow
The field for theflowrecord component. -
codec
The field for thecodecrecord component. -
bundlerInfo
The field for thebundlerInforecord component.
-
-
Constructor Details
-
NetworkStateImpl
NetworkStateImpl(NetworkPhase networkPhase, NetworkSide networkSide, PacketCodec<ByteBuf, Packet<? super L>> packetCodec, @Nullable @Nullable PacketBundleHandler packetBundleHandler)
-
-
Method Details
-
bundleHandler
- Specified by:
bundleHandlerin interfaceNetworkState<L extends PacketListener>- Mappings:
Namespace Name Mixin selector official dLuy;d()Lxw;intermediary comp_2237Lnet/minecraft/class_9127;comp_2237()Lnet/minecraft/class_8039;named bundleHandlerLnet/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:
idin interfaceNetworkState<L extends PacketListener>- Mappings:
Namespace Name Mixin selector official aLuy;a()Lup;intermediary comp_2234Lnet/minecraft/class_9127;comp_2234()Lnet/minecraft/class_2539;named idLnet/minecraft/network/NetworkState;id()Lnet/minecraft/network/NetworkPhase;
-
side
- Specified by:
sidein interfaceNetworkState<L extends PacketListener>- Mappings:
Namespace Name Mixin selector official bLuy;b()Lxy;intermediary comp_2235Lnet/minecraft/class_9127;comp_2235()Lnet/minecraft/class_2598;named sideLnet/minecraft/network/NetworkState;side()Lnet/minecraft/network/NetworkSide;
-
codec
- Specified by:
codecin interfaceNetworkState<L extends PacketListener>- Mappings:
Namespace Name Mixin selector official cLuy;c()Lxo;intermediary comp_2236Lnet/minecraft/class_9127;comp_2236()Lnet/minecraft/class_9139;named codecLnet/minecraft/network/NetworkState;codec()Lnet/minecraft/network/codec/PacketCodec;
-
flow
Returns the value of theflowrecord component.- Returns:
- the value of the
flowrecord component
-
bundlerInfo
Returns the value of thebundlerInforecord component.- Returns:
- the value of the
bundlerInforecord component
-