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-
- side-
- codec-
- bundleHandler-
- 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 side, PacketCodec<ByteBuf,Packet<? super L extends PacketListener>> codec, @Nullable PacketBundleHandler bundleHandler)
extends Record
implements NetworkState<L> 
- Mappings:
- Namespace - Name - named - net/minecraft/network/NetworkStateBuilder$NetworkStateImpl- intermediary - net/minecraft/class_9147$class_9149- official - zb$b- named - id- intermediary - comp_2234- official - a- named - side- intermediary - comp_2235- official - b- named - codec- intermediary - comp_2236- official - c- named - bundleHandler- intermediary - comp_2237- official - d
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.network.NetworkStateNetworkState.Factory<T extends PacketListener,B extends ByteBuf> 
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final @Nullable PacketBundleHandlerThe field for thebundleHandlerrecord component.private final PacketCodec<ByteBuf, Packet<? super L>> The field for thecodecrecord component.private final NetworkPhaseThe field for theidrecord component.private final NetworkSideThe field for thesiderecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionNetworkStateImpl(NetworkPhase networkPhase, NetworkSide networkSide, PacketCodec<ByteBuf, Packet<? super L>> packetCodec, @Nullable PacketBundleHandler packetBundleHandler) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thebundleHandlerrecord component.PacketCodec<ByteBuf, Packet<? super L>> codec()Returns the value of thecodecrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.side()Returns the value of thesiderecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
idThe field for theidrecord component.
- 
sideThe field for thesiderecord component.
- 
codecThe field for thecodecrecord component.
- 
bundleHandlerThe field for thebundleHandlerrecord component.
 
- 
- 
Constructor Details- 
NetworkStateImplNetworkStateImpl(NetworkPhase networkPhase, NetworkSide networkSide, PacketCodec<ByteBuf, Packet<? super L>> packetCodec, @Nullable @Nullable PacketBundleHandler packetBundleHandler) 
 
- 
- 
Method Details- 
bundleHandlerReturns the value of thebundleHandlerrecord component.- Specified by:
- bundleHandlerin interface- NetworkState<L extends PacketListener>
- Returns:
- the value of the bundleHandlerrecord component
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
idReturns the value of theidrecord component.- Specified by:
- idin interface- NetworkState<L extends PacketListener>
- Returns:
- the value of the idrecord component
 
- 
sideReturns the value of thesiderecord component.- Specified by:
- sidein interface- NetworkState<L extends PacketListener>
- Returns:
- the value of the siderecord component
 
- 
codecReturns the value of thecodecrecord component.- Specified by:
- codecin interface- NetworkState<L extends PacketListener>
- Returns:
- the value of the codecrecord component
 
 
-