Package net.minecraft.server.world
Record Class ChunkHolder.MultithreadAction
java.lang.Object
java.lang.Record
net.minecraft.server.world.ChunkHolder.MultithreadAction
- Record Components:
thread
-action
-actionDesc
-
- Enclosing class:
ChunkHolder
private static record ChunkHolder.MultithreadAction(Thread thread, CompletableFuture<?> action, String actionDesc)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/world/ChunkHolder$MultithreadAction
intermediary net/minecraft/class_3193$class_5830
official aqm$a
named thread
intermediary comp_2364
official a
named action
intermediary comp_2365
official b
named actionDesc
intermediary comp_2366
official c
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CompletableFuture
<?> The field for theaction
record component.private final String
The field for theactionDesc
record component.private final Thread
The field for thethread
record component. -
Constructor Summary
ConstructorDescriptionMultithreadAction
(Thread thread, CompletableFuture<?> action, String actionDesc) Creates an instance of aMultithreadAction
record class. -
Method Summary
Modifier and TypeMethodDescriptionaction()
Returns the value of theaction
record component.Returns the value of theactionDesc
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.thread()
Returns the value of thethread
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
thread
The field for thethread
record component. -
action
The field for theaction
record component. -
actionDesc
The field for theactionDesc
record component.
-
-
Constructor Details
-
MultithreadAction
MultithreadAction(Thread thread, CompletableFuture<?> action, String actionDesc) Creates an instance of aMultithreadAction
record class.- Parameters:
thread
- the value for thethread
record componentaction
- the value for theaction
record componentactionDesc
- the value for theactionDesc
record 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)
. -
thread
Returns the value of thethread
record component.- Returns:
- the value of the
thread
record component
-
action
Returns the value of theaction
record component.- Returns:
- the value of the
action
record component
-
actionDesc
Returns the value of theactionDesc
record component.- Returns:
- the value of the
actionDesc
record component
-