Package net.minecraft.network
Record Class OpaqueByteBufHolder
java.lang.Object
java.lang.Record
net.minecraft.network.OpaqueByteBufHolder
- Record Components:
contents-
- All Implemented Interfaces:
ReferenceCounted
A holder of
ByteBuf. This is used in local connection to skip
unnecessary operations that check instanceof ByteBuf.- Mappings:
Namespace Name named net/minecraft/network/OpaqueByteBufHolderintermediary net/minecraft/class_10550official wcnamed contentsintermediary comp_3473official a
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static ObjectintrefCnt()booleanrelease()booleanrelease(int count) retain()retain(int int2) final StringtoString()Returns a string representation of this record class.touch()static Object
-
Field Details
-
contents
The field for thecontentsrecord component.
-
-
Constructor Details
-
OpaqueByteBufHolder
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/network/OpaqueByteBufHolder;<init>(Lio/netty/buffer/ByteBuf;)Vintermediary <init>Lnet/minecraft/class_10550;<init>(Lio/netty/buffer/ByteBuf;)Vofficial <init>Lwc;<init>(Lio/netty/buffer/ByteBuf;)V
-
-
Method Details
-
pack
- Mappings:
Namespace Name Mixin selector named packLnet/minecraft/network/OpaqueByteBufHolder;pack(Ljava/lang/Object;)Ljava/lang/Object;intermediary method_65937Lnet/minecraft/class_10550;method_65937(Ljava/lang/Object;)Ljava/lang/Object;official aLwc;a(Ljava/lang/Object;)Ljava/lang/Object;
-
unpack
- Mappings:
Namespace Name Mixin selector named unpackLnet/minecraft/network/OpaqueByteBufHolder;unpack(Ljava/lang/Object;)Ljava/lang/Object;intermediary method_65939Lnet/minecraft/class_10550;method_65939(Ljava/lang/Object;)Ljava/lang/Object;official bLwc;b(Ljava/lang/Object;)Ljava/lang/Object;
-
refCnt
public int refCnt()- Specified by:
refCntin interfaceReferenceCounted
-
retain
- Specified by:
retainin interfaceReferenceCounted- Mappings:
Namespace Name Mixin selector named retainLnet/minecraft/network/OpaqueByteBufHolder;retain()Lnet/minecraft/network/OpaqueByteBufHolder;intermediary method_65935Lnet/minecraft/class_10550;method_65935()Lnet/minecraft/class_10550;official aLwc;a()Lwc;
-
retain
- Specified by:
retainin interfaceReferenceCounted- Mappings:
Namespace Name Mixin selector named retainLnet/minecraft/network/OpaqueByteBufHolder;retain(I)Lnet/minecraft/network/OpaqueByteBufHolder;intermediary method_65936Lnet/minecraft/class_10550;method_65936(I)Lnet/minecraft/class_10550;official aLwc;a(I)Lwc;
-
touch
- Specified by:
touchin interfaceReferenceCounted- Mappings:
Namespace Name Mixin selector named touchLnet/minecraft/network/OpaqueByteBufHolder;touch()Lnet/minecraft/network/OpaqueByteBufHolder;intermediary method_65938Lnet/minecraft/class_10550;method_65938()Lnet/minecraft/class_10550;official bLwc;b()Lwc;
-
touch
- Specified by:
touchin interfaceReferenceCounted- Mappings:
Namespace Name Mixin selector named touchLnet/minecraft/network/OpaqueByteBufHolder;touch(Ljava/lang/Object;)Lnet/minecraft/network/OpaqueByteBufHolder;intermediary method_65940Lnet/minecraft/class_10550;method_65940(Ljava/lang/Object;)Lnet/minecraft/class_10550;official cLwc;c(Ljava/lang/Object;)Lwc;
-
release
public boolean release()- Specified by:
releasein interfaceReferenceCounted
-
release
public boolean release(int count) - Specified by:
releasein interfaceReferenceCounted- Mappings:
Namespace Name Mixin selector named releaseLnet/minecraft/network/OpaqueByteBufHolder;release(I)Zintermediary releaseLnet/minecraft/class_10550;release(I)Zofficial releaseLwc;release(I)Z
-
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). -
contents
Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-