Record Class LocalAccessWidenerEntry
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.accesswidener.LocalAccessWidenerEntry
- All Implemented Interfaces:
AccessWidenerEntry
public record LocalAccessWidenerEntry(Path path, String hash)
extends Record
implements AccessWidenerEntry
-
Constructor Summary
ConstructorsConstructorDescriptionLocalAccessWidenerEntry(Path path, String hash) Creates an instance of aLocalAccessWidenerEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalAccessWidenerEntryfinal booleanIndicates whether some other object is "equal to" this one.hash()Returns the value of thehashrecord component.inthashCode()Returns a hash code value for this object.@Nullable Stringpath()Returns the value of thepathrecord component.voidread(net.fabricmc.classtweaker.api.visitor.ClassTweakerVisitor visitor, LazyCloseable<net.fabricmc.tinyremapper.TinyRemapper> remapper, MappingsNamespace productionNamespace) voidreadOfficial(net.fabricmc.classtweaker.api.visitor.ClassTweakerVisitor visitor) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocalAccessWidenerEntry
Creates an instance of aLocalAccessWidenerEntryrecord class.- Parameters:
path- the value for thepathrecord componenthash- the value for thehashrecord component
-
-
Method Details
-
create
-
read
public void read(net.fabricmc.classtweaker.api.visitor.ClassTweakerVisitor visitor, LazyCloseable<net.fabricmc.tinyremapper.TinyRemapper> remapper, MappingsNamespace productionNamespace) throws IOException - Specified by:
readin interfaceAccessWidenerEntry- Throws:
IOException
-
readOfficial
public void readOfficial(net.fabricmc.classtweaker.api.visitor.ClassTweakerVisitor visitor) throws IOException - Specified by:
readOfficialin interfaceAccessWidenerEntry- Throws:
IOException
-
environment
- Specified by:
environmentin interfaceAccessWidenerEntry
-
mappingId
- Specified by:
mappingIdin interfaceAccessWidenerEntry- Returns:
- The mod id to be used in
TransitiveAccessWidenerMappingsProcessoror null when this entry does not contain transitive entries.
-
getSortKey
- Specified by:
getSortKeyin interfaceAccessWidenerEntry
-
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
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). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
hash
Returns the value of thehashrecord component.- Returns:
- the value of the
hashrecord component
-