Record Class WindowAndDevice
java.lang.Object
java.lang.Record
com.mojang.blaze3d.systems.WindowAndDevice
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWindowAndDevice(long window, GpuDevice device) Creates an instance of aWindowAndDevicerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondevice()Returns the value of thedevicerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longwindow()Returns the value of thewindowrecord component.
-
Field Details
-
window
private final long windowThe field for thewindowrecord component. -
device
The field for thedevicerecord component.
-
-
Constructor Details
-
WindowAndDevice
Creates an instance of aWindowAndDevicerecord class.- Parameters:
window- the value for thewindowrecord componentdevice- the value for thedevicerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
window
public long window()Returns the value of thewindowrecord component.- Returns:
- the value of the
windowrecord component
-
device
Returns the value of thedevicerecord component.- Returns:
- the value of the
devicerecord component
-