Record Class ShaderSource.CachedIncludeSource
java.lang.Object
java.lang.Record
com.mojang.renderpearl.api.pipeline.ShaderSource.CachedIncludeSource
- All Implemented Interfaces:
AutoCloseable
- Enclosing interface:
ShaderSource
public static record ShaderSource.CachedIncludeSource(long includeResultPtr)
extends Record
implements AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for theincludeResultPtrrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCachedIncludeSource(long includeResultPtr) Creates an instance of aCachedIncludeSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()create(Identifier id, String source) createError(String message) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theincludeResultPtrrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
includeResultPtr
private final long includeResultPtrThe field for theincludeResultPtrrecord component.
-
-
Constructor Details
-
CachedIncludeSource
public CachedIncludeSource(long includeResultPtr) Creates an instance of aCachedIncludeSourcerecord class.- Parameters:
includeResultPtr- the value for theincludeResultPtrrecord component
-
-
Method Details
-
create
-
createError
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
includeResultPtr
public long includeResultPtr()Returns the value of theincludeResultPtrrecord component.- Returns:
- the value of the
includeResultPtrrecord component
-