Package net.minecraft.client.network
Record Class ClientCommonNetworkHandler.ConfirmServerResourcePackScreen.Pack
java.lang.Object
java.lang.Record
net.minecraft.client.network.ClientCommonNetworkHandler.ConfirmServerResourcePackScreen.Pack
- Record Components:
id-url-hash-
- Enclosing class:
ClientCommonNetworkHandler.ConfirmServerResourcePackScreen
@Environment(CLIENT)
private static record ClientCommonNetworkHandler.ConfirmServerResourcePackScreen.Pack(UUID id, URL url, String hash)
extends Record
- Mappings:
Namespace Name official fnp$b$aintermediary net/minecraft/class_8673$class_9058$class_9059named net/minecraft/client/network/ClientCommonNetworkHandler$ConfirmServerResourcePackScreen$Packofficial aintermediary comp_2172named idofficial bintermediary comp_2173named urlofficial cintermediary comp_2174named hash
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.hash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Field Details
-
Constructor Details
-
Pack
-
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
hash
Returns the value of thehashrecord component.- Returns:
- the value of the
hashrecord component
-