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
official zg$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 side
official c
intermediary comp_2236
named codec
official d
intermediary comp_2237
named bundleHandler
  • Field Details

  • Constructor Details

  • Method Details

    • bundleHandler

      @Nullable public @Nullable PacketBundleHandler bundleHandler()
      Specified by:
      bundleHandler in interface NetworkState<L extends PacketListener>
      Mappings:
      Namespace Name Mixin selector
      official d Lwc;d()Lza;
      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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • id

      public NetworkPhase id()
      Specified by:
      id in interface NetworkState<L extends PacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lwc;a()Lvt;
      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

      public NetworkSide side()
      Specified by:
      side in interface NetworkState<L extends PacketListener>
      Mappings:
      Namespace Name Mixin selector
      official b Lwc;b()Lzc;
      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

      public PacketCodec<ByteBuf,Packet<? super L>> codec()
      Specified by:
      codec in interface NetworkState<L extends PacketListener>
      Mappings:
      Namespace Name Mixin selector
      official c Lwc;c()Lys;
      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;