Record Class ModAccessWidenerEntry
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.accesswidener.ModAccessWidenerEntry
- All Implemented Interfaces:
AccessWidenerEntry
public record ModAccessWidenerEntry(FabricModJson mod, String path, ModEnvironment environment, boolean transitiveOnly)
extends Record
implements AccessWidenerEntry
AccessWidenerEntry implementation for a FabricModJson.-
Constructor Summary
ConstructorsConstructorDescriptionModAccessWidenerEntry(FabricModJson mod, String path, ModEnvironment environment, boolean transitiveOnly) Creates an instance of aModAccessWidenerEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Stringmod()Returns the value of themodrecord component.path()Returns the value of thepathrecord component.voidread(net.fabricmc.classtweaker.api.visitor.ClassTweakerVisitor visitor, LazyCloseable<net.fabricmc.tinyremapper.TinyRemapper> remapper, MappingsNamespace productionNamespace) static List<ModAccessWidenerEntry> readAll(FabricModJson modJson, boolean transitiveOnly) voidreadOfficial(net.fabricmc.classtweaker.api.visitor.ClassTweakerVisitor visitor) final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetransitiveOnlyrecord component.
-
Constructor Details
-
ModAccessWidenerEntry
public ModAccessWidenerEntry(FabricModJson mod, String path, ModEnvironment environment, boolean transitiveOnly) Creates an instance of aModAccessWidenerEntryrecord class.- Parameters:
mod- the value for themodrecord componentpath- the value for thepathrecord componentenvironment- the value for theenvironmentrecord componenttransitiveOnly- the value for thetransitiveOnlyrecord component
-
-
Method Details
-
readAll
-
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
-
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
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
mod
Returns the value of themodrecord component.- Returns:
- the value of the
modrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
environment
Returns the value of theenvironmentrecord component.- Specified by:
environmentin interfaceAccessWidenerEntry- Returns:
- the value of the
environmentrecord component
-
transitiveOnly
public boolean transitiveOnly()Returns the value of thetransitiveOnlyrecord component.- Returns:
- the value of the
transitiveOnlyrecord component
-