Record Class AssetIndex
java.lang.Object
java.lang.Record
com.cleanroommc.gradle.api.schema.AssetIndex
public record AssetIndex(Map<String, AssetIndex.Entry> objects, boolean virtual, boolean mapToResources)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionAssetIndex(Map<String, AssetIndex.Entry> objects, boolean virtual, boolean mapToResources) Creates an instance of aAssetIndexrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themapToResourcesrecord component.objects()Returns the value of theobjectsrecord component.final StringtoString()Returns a string representation of this record class.booleanvirtual()Returns the value of thevirtualrecord component.
-
Constructor Details
-
AssetIndex
public AssetIndex() -
AssetIndex
Creates an instance of aAssetIndexrecord class.- Parameters:
objects- the value for theobjectsrecord componentvirtual- the value for thevirtualrecord componentmapToResources- the value for themapToResourcesrecord component
-
-
Method Details
-
objectCollection
-
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. -
objects
Returns the value of theobjectsrecord component.- Returns:
- the value of the
objectsrecord component
-
virtual
public boolean virtual()Returns the value of thevirtualrecord component.- Returns:
- the value of the
virtualrecord component
-
mapToResources
@SerializedName("map_to_resources") public boolean mapToResources()Returns the value of themapToResourcesrecord component.- Returns:
- the value of the
mapToResourcesrecord component
-