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 ask$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 Summary
Modifier and TypeFieldDescriptionprivate final HashFunction
The field for thehashFunction
record component.The field for theheaders
record component.private final NetworkUtils.DownloadListener
The field for thelistener
record component.private final int
The field for themaxSize
record component.private final Proxy
The field for theproxy
record component. -
Constructor Summary
ConstructorDescriptionConfig
(HashFunction hashFunction, int int2, Map<String, String> map, Proxy proxy, NetworkUtils.DownloadListener downloadListener) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehashFunction
record component.headers()
Returns the value of theheaders
record component.listener()
Returns the value of thelistener
record component.int
maxSize()
Returns the value of themaxSize
record component.proxy()
Returns the value of theproxy
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
hashFunction
The field for thehashFunction
record component. -
maxSize
private final int maxSizeThe field for themaxSize
record component. -
headers
The field for theheaders
record component. -
proxy
The field for theproxy
record component. -
listener
The field for thelistener
record 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 thehashFunction
record component.- Returns:
- the value of the
hashFunction
record component
-
maxSize
public int maxSize()Returns the value of themaxSize
record component.- Returns:
- the value of the
maxSize
record component
-
headers
Returns the value of theheaders
record component.- Returns:
- the value of the
headers
record component
-
proxy
Returns the value of theproxy
record component.- Returns:
- the value of the
proxy
record component
-
listener
Returns the value of thelistener
record component.- Returns:
- the value of the
listener
record component
-