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/OpaqueByteBufHolder- intermediary - net/minecraft/class_10550- official - vn- named - contents- intermediary - comp_3473- official - a
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
contentsThe field for thecontentsrecord component.
 
- 
- 
Constructor Details- 
OpaqueByteBufHolder- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/network/OpaqueByteBufHolder;<init>(Lio/netty/buffer/ByteBuf;)V- intermediary - <init>- Lnet/minecraft/class_10550;<init>(Lio/netty/buffer/ByteBuf;)V- official - <init>- Lvn;<init>(Lio/netty/buffer/ByteBuf;)V
 
 
- 
- 
Method Details- 
pack- Mappings:
- Namespace - Name - Mixin selector - named - pack- Lnet/minecraft/network/OpaqueByteBufHolder;pack(Ljava/lang/Object;)Ljava/lang/Object;- intermediary - method_65937- Lnet/minecraft/class_10550;method_65937(Ljava/lang/Object;)Ljava/lang/Object;- official - a- Lvn;a(Ljava/lang/Object;)Ljava/lang/Object;
 
- 
unpack- Mappings:
- Namespace - Name - Mixin selector - named - unpack- Lnet/minecraft/network/OpaqueByteBufHolder;unpack(Ljava/lang/Object;)Ljava/lang/Object;- intermediary - method_65939- Lnet/minecraft/class_10550;method_65939(Ljava/lang/Object;)Ljava/lang/Object;- official - b- Lvn;b(Ljava/lang/Object;)Ljava/lang/Object;
 
- 
refCntpublic int refCnt()- Specified by:
- refCntin interface- ReferenceCounted
 
- 
retain- Specified by:
- retainin interface- ReferenceCounted
- Mappings:
- Namespace - Name - Mixin selector - named - retain- Lnet/minecraft/network/OpaqueByteBufHolder;retain()Lnet/minecraft/network/OpaqueByteBufHolder;- intermediary - method_65935- Lnet/minecraft/class_10550;method_65935()Lnet/minecraft/class_10550;- official - a- Lvn;a()Lvn;
 
- 
retain- Specified by:
- retainin interface- ReferenceCounted
- Mappings:
- Namespace - Name - Mixin selector - named - retain- Lnet/minecraft/network/OpaqueByteBufHolder;retain(I)Lnet/minecraft/network/OpaqueByteBufHolder;- intermediary - method_65936- Lnet/minecraft/class_10550;method_65936(I)Lnet/minecraft/class_10550;- official - a- Lvn;a(I)Lvn;
 
- 
touch- Specified by:
- touchin interface- ReferenceCounted
- Mappings:
- Namespace - Name - Mixin selector - named - touch- Lnet/minecraft/network/OpaqueByteBufHolder;touch()Lnet/minecraft/network/OpaqueByteBufHolder;- intermediary - method_65938- Lnet/minecraft/class_10550;method_65938()Lnet/minecraft/class_10550;- official - b- Lvn;b()Lvn;
 
- 
touch- Specified by:
- touchin interface- ReferenceCounted
- Mappings:
- Namespace - Name - Mixin selector - named - touch- Lnet/minecraft/network/OpaqueByteBufHolder;touch(Ljava/lang/Object;)Lnet/minecraft/network/OpaqueByteBufHolder;- intermediary - method_65940- Lnet/minecraft/class_10550;method_65940(Ljava/lang/Object;)Lnet/minecraft/class_10550;- official - c- Lvn;c(Ljava/lang/Object;)Lvn;
 
- 
releasepublic boolean release()- Specified by:
- releasein interface- ReferenceCounted
 
- 
releasepublic boolean release(int count) - Specified by:
- releasein interface- ReferenceCounted
- Mappings:
- Namespace - Name - Mixin selector - named - release- Lnet/minecraft/network/OpaqueByteBufHolder;release(I)Z- intermediary - release- Lnet/minecraft/class_10550;release(I)Z- official - release- Lvn;release(I)Z
 
- 
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).
- 
contentsReturns the value of thecontentsrecord component.- Returns:
- the value of the contentsrecord component
 
 
-