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$Config- intermediary - net/minecraft/class_9028$class_9029- official - asx$a- named - hashFunction- intermediary - comp_2138- official - a- named - maxSize- intermediary - comp_2139- official - b- named - headers- intermediary - comp_2140- official - c- named - proxy- intermediary - comp_2141- official - d- named - listener- intermediary - comp_2142- official - e
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionConfig(HashFunction hashFunction, int int2, Map<String, String> map, Proxy proxy, NetworkUtils.DownloadListener downloadListener) 
- 
Method SummaryModifier 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- 
hashFunctionThe field for thehashFunctionrecord component.
- 
maxSizeprivate final int maxSizeThe field for themaxSizerecord component.
- 
headersThe field for theheadersrecord component.
- 
proxyThe field for theproxyrecord component.
- 
listenerThe field for thelistenerrecord component.
 
- 
- 
Constructor Details- 
Configpublic Config(HashFunction hashFunction, int int2, Map<String, String> map, Proxy proxy, NetworkUtils.DownloadListener downloadListener) 
 
- 
- 
Method Details- 
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
hashFunctionReturns the value of thehashFunctionrecord component.- Returns:
- the value of the hashFunctionrecord component
 
- 
maxSizepublic int maxSize()Returns the value of themaxSizerecord component.- Returns:
- the value of the maxSizerecord component
 
- 
headersReturns the value of theheadersrecord component.- Returns:
- the value of the headersrecord component
 
- 
proxyReturns the value of theproxyrecord component.- Returns:
- the value of the proxyrecord component
 
- 
listenerReturns the value of thelistenerrecord component.- Returns:
- the value of the listenerrecord component
 
 
-