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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontents()
Returns the value of thecontents
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static Object
int
refCnt()
boolean
release()
boolean
release
(int count) retain()
retain
(int int2) final String
toString()
Returns a string representation of this record class.touch()
static Object
-
Field Details
-
contents
The field for thecontents
record component.
-
-
Constructor Details
-
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;
-
refCnt
public int refCnt()- Specified by:
refCnt
in interfaceReferenceCounted
-
retain
- Specified by:
retain
in interfaceReferenceCounted
- 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:
retain
in interfaceReferenceCounted
- 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:
touch
in interfaceReferenceCounted
- 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:
touch
in interfaceReferenceCounted
- 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;
-
release
public boolean release()- Specified by:
release
in interfaceReferenceCounted
-
release
public boolean release(int count) - Specified by:
release
in interfaceReferenceCounted
- 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
-
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 thecontents
record component.- Returns:
- the value of the
contents
record component
-