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$MultithreadActionintermediary net/minecraft/class_3193$class_5830official aqm$anamed threadintermediary comp_2364official anamed actionintermediary comp_2365official bnamed actionDescintermediary comp_2366official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CompletableFuture<?> The field for theactionrecord component.private final StringThe field for theactionDescrecord component.private final ThreadThe field for thethreadrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMultithreadAction(Thread thread, CompletableFuture<?> action, String actionDesc) Creates an instance of aMultithreadActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of theactionDescrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.thread()Returns the value of thethreadrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
thread
The field for thethreadrecord component. -
action
The field for theactionrecord component. -
actionDesc
The field for theactionDescrecord component.
-
-
Constructor Details
-
MultithreadAction
MultithreadAction(Thread thread, CompletableFuture<?> action, String actionDesc) Creates an instance of aMultithreadActionrecord class.- Parameters:
thread- the value for thethreadrecord componentaction- the value for theactionrecord componentactionDesc- the value for theactionDescrecord 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 thethreadrecord component.- Returns:
- the value of the
threadrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
actionDesc
Returns the value of theactionDescrecord component.- Returns:
- the value of the
actionDescrecord component
-