Record Class TechList
java.lang.Object
java.lang.Record
com.portingdeadmods.researchd.api.client.TechList
public record TechList(com.portingdeadmods.portingdeadlibs.utils.UniqueArray<ResearchInstance> entries)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTechList(com.portingdeadmods.portingdeadlibs.utils.UniqueArray<ResearchInstance> entries) Creates an instance of aTechListrecord class.TechList(Set<ResearchInstance> entries) -
Method Summary
Modifier and TypeMethodDescriptioncom.portingdeadmods.portingdeadlibs.utils.UniqueArray<ResearchInstance> entries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.static TechListgetListForSearch(String searchVal, net.minecraft.world.level.Level level) final inthashCode()Returns a hash code value for this object.voidfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TechList
-
TechList
Creates an instance of aTechListrecord class.- Parameters:
entries- the value for theentriesrecord component
-
-
Method Details
-
getClientTechList
-
sortTechList
public void sortTechList() -
getListForSearch
-
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). -
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-