Record Class DeviceInfo
java.lang.Object
java.lang.Record
com.mojang.blaze3d.systems.DeviceInfo
public record DeviceInfo(String name, String vendorName, String driverInfo, boolean isZZeroToOne, String backendName, float timestampPeriod, DeviceLimits limits, DeviceFeatures features, Set<String> underlyingExtensions, HintsAndWorkarounds hintsAndWorkarounds, DeviceType type)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thebackendNamerecord component.private final StringThe field for thedriverInforecord component.private final DeviceFeaturesThe field for thefeaturesrecord component.private final HintsAndWorkaroundsThe field for thehintsAndWorkaroundsrecord component.private final booleanThe field for theisZZeroToOnerecord component.private final DeviceLimitsThe field for thelimitsrecord component.private final StringThe field for thenamerecord component.private final floatThe field for thetimestampPeriodrecord component.private final DeviceTypeThe field for thetyperecord component.The field for theunderlyingExtensionsrecord component.private final StringThe field for thevendorNamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDeviceInfo(String name, String vendorName, String driverInfo, boolean isZZeroToOne, String backendName, float timestampPeriod, DeviceLimits limits, DeviceFeatures features, Set<String> underlyingExtensions, HintsAndWorkarounds hintsAndWorkarounds, DeviceType type) Creates an instance of aDeviceInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackendNamerecord component.Returns the value of thedriverInforecord component.final booleanIndicates whether some other object is "equal to" this one.features()Returns the value of thefeaturesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehintsAndWorkaroundsrecord component.booleanReturns the value of theisZZeroToOnerecord component.limits()Returns the value of thelimitsrecord component.name()Returns the value of thenamerecord component.floatReturns the value of thetimestampPeriodrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Returns the value of theunderlyingExtensionsrecord component.Returns the value of thevendorNamerecord component.
-
Field Details
-
name
The field for thenamerecord component. -
vendorName
The field for thevendorNamerecord component. -
driverInfo
The field for thedriverInforecord component. -
isZZeroToOne
private final boolean isZZeroToOneThe field for theisZZeroToOnerecord component. -
backendName
The field for thebackendNamerecord component. -
timestampPeriod
private final float timestampPeriodThe field for thetimestampPeriodrecord component. -
limits
The field for thelimitsrecord component. -
features
The field for thefeaturesrecord component. -
underlyingExtensions
-
hintsAndWorkarounds
The field for thehintsAndWorkaroundsrecord component. -
type
The field for thetyperecord component.
-
-
Constructor Details
-
DeviceInfo
public DeviceInfo(String name, String vendorName, String driverInfo, boolean isZZeroToOne, String backendName, float timestampPeriod, DeviceLimits limits, DeviceFeatures features, Set<String> underlyingExtensions, HintsAndWorkarounds hintsAndWorkarounds, DeviceType type) Creates an instance of aDeviceInforecord class.- Parameters:
name- the value for thenamerecord componentvendorName- the value for thevendorNamerecord componentdriverInfo- the value for thedriverInforecord componentisZZeroToOne- the value for theisZZeroToOnerecord componentbackendName- the value for thebackendNamerecord componenttimestampPeriod- the value for thetimestampPeriodrecord componentlimits- the value for thelimitsrecord componentfeatures- the value for thefeaturesrecord componentunderlyingExtensions- the value for theunderlyingExtensionsrecord componenthintsAndWorkarounds- the value for thehintsAndWorkaroundsrecord componenttype- the value for thetyperecord 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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
vendorName
Returns the value of thevendorNamerecord component.- Returns:
- the value of the
vendorNamerecord component
-
driverInfo
Returns the value of thedriverInforecord component.- Returns:
- the value of the
driverInforecord component
-
isZZeroToOne
public boolean isZZeroToOne()Returns the value of theisZZeroToOnerecord component.- Returns:
- the value of the
isZZeroToOnerecord component
-
backendName
Returns the value of thebackendNamerecord component.- Returns:
- the value of the
backendNamerecord component
-
timestampPeriod
public float timestampPeriod()Returns the value of thetimestampPeriodrecord component.- Returns:
- the value of the
timestampPeriodrecord component
-
limits
Returns the value of thelimitsrecord component.- Returns:
- the value of the
limitsrecord component
-
features
Returns the value of thefeaturesrecord component.- Returns:
- the value of the
featuresrecord component
-
underlyingExtensions
-
hintsAndWorkarounds
Returns the value of thehintsAndWorkaroundsrecord component.- Returns:
- the value of the
hintsAndWorkaroundsrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-