Package dev.gothickit.zenkit.msh
Record Class CachedLightMap
java.lang.Object
java.lang.Record
dev.gothickit.zenkit.msh.CachedLightMap
- All Implemented Interfaces:
CacheableObject<CachedLightMap>,LightMap
-
Constructor Summary
ConstructorsConstructorDescriptionCachedLightMap(@NotNull Texture image, @NotNull Vec3f origin, @NotNull Vec3f @NotNull [] normals) Creates an instance of aCachedLightMaprecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull CachedLightMapcache()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Textureimage()Returns the value of theimagerecord component.booleanisCached()@NotNull Vec3f @NotNull []normals()Returns the value of thenormalsrecord component.@NotNull Vec3forigin()Returns the value of theoriginrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CachedLightMap
public CachedLightMap(@NotNull @NotNull Texture image, @NotNull @NotNull Vec3f origin, @NotNull @NotNull Vec3f @NotNull [] normals) Creates an instance of aCachedLightMaprecord class.- Parameters:
image- the value for theimagerecord componentorigin- the value for theoriginrecord componentnormals- the value for thenormalsrecord component
-
-
Method Details
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedLightMap>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedLightMap>
-
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). -
image
Returns the value of theimagerecord component. -
origin
Returns the value of theoriginrecord component. -
normals
Returns the value of thenormalsrecord component.
-