Package net.minecraft.util
Record Class Downloader.Config
java.lang.Object
java.lang.Record
net.minecraft.util.Downloader.Config
- Record Components:
hashFunction-maxSize-headers-proxy-listener-
- Enclosing class:
Downloader
public static record Downloader.Config(HashFunction hashFunction, int maxSize, Map<String,String> headers, Proxy proxy, NetworkUtils.DownloadListener listener)
extends Record
- Mappings:
Namespace Name named net/minecraft/util/Downloader$Configintermediary net/minecraft/class_9028$class_9029official asl$anamed hashFunctionintermediary comp_2138official anamed maxSizeintermediary comp_2139official bnamed headersintermediary comp_2140official cnamed proxyintermediary comp_2141official dnamed listenerintermediary comp_2142official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HashFunctionThe field for thehashFunctionrecord component.The field for theheadersrecord component.private final NetworkUtils.DownloadListenerThe field for thelistenerrecord component.private final intThe field for themaxSizerecord component.private final ProxyThe field for theproxyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionConfig(HashFunction hashFunction, int int2, Map<String, String> map, Proxy proxy, NetworkUtils.DownloadListener downloadListener) -
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.Returns the value of thehashFunctionrecord component.headers()Returns the value of theheadersrecord component.listener()Returns the value of thelistenerrecord component.intmaxSize()Returns the value of themaxSizerecord component.proxy()Returns the value of theproxyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
hashFunction
The field for thehashFunctionrecord component. -
maxSize
private final int maxSizeThe field for themaxSizerecord component. -
headers
The field for theheadersrecord component. -
proxy
The field for theproxyrecord component. -
listener
The field for thelistenerrecord component.
-
-
Constructor Details
-
Config
public Config(HashFunction hashFunction, int int2, Map<String, String> map, Proxy proxy, NetworkUtils.DownloadListener downloadListener)
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
hashFunction
Returns the value of thehashFunctionrecord component.- Returns:
- the value of the
hashFunctionrecord component
-
maxSize
public int maxSize()Returns the value of themaxSizerecord component.- Returns:
- the value of the
maxSizerecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-
proxy
Returns the value of theproxyrecord component.- Returns:
- the value of the
proxyrecord component
-
listener
Returns the value of thelistenerrecord component.- Returns:
- the value of the
listenerrecord component
-