Package com.mojang.blaze3d.systems
Record Class RenderSystem.GpuAsyncTask
java.lang.Object
java.lang.Record
com.mojang.blaze3d.systems.RenderSystem.GpuAsyncTask
- Enclosing class:
RenderSystem
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGpuAsyncTask(Runnable callback, GpuFence fence) Creates an instance of aGpuAsyncTaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncallback()Returns the value of thecallbackrecord component.final booleanIndicates whether some other object is "equal to" this one.fence()Returns the value of thefencerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
callback
The field for thecallbackrecord component. -
fence
The field for thefencerecord component.
-
-
Constructor Details
-
GpuAsyncTask
Creates an instance of aGpuAsyncTaskrecord class.- Parameters:
callback- the value for thecallbackrecord componentfence- the value for thefencerecord 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). -
callback
Returns the value of thecallbackrecord component.- Returns:
- the value of the
callbackrecord component
-
fence
Returns the value of thefencerecord component.- Returns:
- the value of the
fencerecord component
-