Record Class ClassicBlockRemapper
java.lang.Object
java.lang.Record
net.raphimc.vialegacy.protocol.classic.c0_28_30toa1_0_15.storage.ClassicBlockRemapper
- All Implemented Interfaces:
com.viaversion.viaversion.api.connection.StorableObject
public record ClassicBlockRemapper(com.viaversion.viaversion.libs.fastutil.ints.Int2ObjectFunction<com.viaversion.viaversion.util.IdAndData> mapper, com.viaversion.viaversion.libs.fastutil.objects.Object2IntFunction<com.viaversion.viaversion.util.IdAndData> reverseMapper)
extends Record
implements com.viaversion.viaversion.api.connection.StorableObject
-
Constructor Summary
ConstructorsConstructorDescriptionClassicBlockRemapper(com.viaversion.viaversion.libs.fastutil.ints.Int2ObjectFunction<com.viaversion.viaversion.util.IdAndData> mapper, com.viaversion.viaversion.libs.fastutil.objects.Object2IntFunction<com.viaversion.viaversion.util.IdAndData> reverseMapper) Creates an instance of aClassicBlockRemapperrecord class. -
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.com.viaversion.viaversion.libs.fastutil.ints.Int2ObjectFunction<com.viaversion.viaversion.util.IdAndData>mapper()Returns the value of themapperrecord component.com.viaversion.viaversion.libs.fastutil.objects.Object2IntFunction<com.viaversion.viaversion.util.IdAndData>Returns the value of thereverseMapperrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.viaversion.viaversion.api.connection.StorableObject
onRemove
-
Constructor Details
-
ClassicBlockRemapper
public ClassicBlockRemapper(com.viaversion.viaversion.libs.fastutil.ints.Int2ObjectFunction<com.viaversion.viaversion.util.IdAndData> mapper, com.viaversion.viaversion.libs.fastutil.objects.Object2IntFunction<com.viaversion.viaversion.util.IdAndData> reverseMapper) Creates an instance of aClassicBlockRemapperrecord class.- Parameters:
mapper- the value for themapperrecord componentreverseMapper- the value for thereverseMapperrecord component
-
-
Method Details
-
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). -
mapper
public com.viaversion.viaversion.libs.fastutil.ints.Int2ObjectFunction<com.viaversion.viaversion.util.IdAndData> mapper()Returns the value of themapperrecord component.- Returns:
- the value of the
mapperrecord component
-
reverseMapper
public com.viaversion.viaversion.libs.fastutil.objects.Object2IntFunction<com.viaversion.viaversion.util.IdAndData> reverseMapper()Returns the value of thereverseMapperrecord component.- Returns:
- the value of the
reverseMapperrecord component
-