Package net.minecraft
Record Class class_9147.class_9148<T extends PacketListener,P extends Packet<? super T>,B extends ByteBuf>
java.lang.Object
java.lang.Record
net.minecraft.class_9147.class_9148<T,P,B>
- Record Components:
type-serializer-
- Enclosing class:
class_9147<T extends PacketListener,B extends ByteBuf>
private static record class_9147.class_9148<T extends PacketListener,P extends Packet<? super T>,B extends ByteBuf> (PacketIdentifier<P extends Packet<? super T>> type, PacketCodec<? super B extends ByteBuf,P extends Packet<? super T>> serializer)
extends Record
- Mappings:
Namespace Name official yc$aintermediary net/minecraft/class_9147$class_9148named net/minecraft/class_9147$class_9148official aintermediary comp_2232named typeofficial bintermediary comp_2233named serializer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PacketCodec<? super B,P> The field for theserializerrecord component.private final PacketIdentifier<P>The field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_9148(PacketIdentifier<P> packetIdentifier, PacketCodec<? super B, P> packetCodec) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidmethod_56459(class_9146<ByteBuf, T> class_9146, Function<ByteBuf, B> function) PacketCodec<? super B,P> Returns the value of theserializerrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
type
The field for thetyperecord component. -
serializer
The field for theserializerrecord component.
-
-
Constructor Details
-
class_9148
class_9148(PacketIdentifier<P> packetIdentifier, PacketCodec<? super B, P> packetCodec)
-
-
Method Details
-
method_56459
- Mappings:
Namespace Name Mixin selector official aLyc$a;a(Lyb;Ljava/util/function/Function;)Vintermediary method_56459Lnet/minecraft/class_9147$class_9148;method_56459(Lnet/minecraft/class_9146;Ljava/util/function/Function;)Vnamed method_56459Lnet/minecraft/class_9147$class_9148;method_56459(Lnet/minecraft/class_9146;Ljava/util/function/Function;)V
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
serializer
Returns the value of theserializerrecord component.- Returns:
- the value of the
serializerrecord component
-