Record Class ModMetadata
java.lang.Object
java.lang.Record
com.hloader.mod.ModMetadata
- Record Components:
entrypoint- the regularModEntrypointclass, ornullasmEntrypoint- anAsmTransformerclass for raw bytecode access, ornullaccessTransformer- the name of a Forge-style access-transformer file bundled in the mod jar, ornull
public record ModMetadata(String id, String version, String entrypoint, String asmEntrypoint, String accessTransformer, List<String> depends)
extends Record
Parsed
hloader.mod.json. At least one of entrypoint/asmEntrypoint/
accessTransformer must be present - a mod can be pure raw-ASM or access-transformer
without any regular lifecycle entrypoint at all.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTransformerrecord component.Returns the value of theasmEntrypointrecord component.depends()Returns the value of thedependsrecord component.Returns the value of theentrypointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ModMetadata
public ModMetadata(String id, String version, String entrypoint, String asmEntrypoint, String accessTransformer, List<String> depends) Creates an instance of aModMetadatarecord class.- Parameters:
id- the value for theidrecord componentversion- the value for theversionrecord componententrypoint- the value for theentrypointrecord componentasmEntrypoint- the value for theasmEntrypointrecord componentaccessTransformer- the value for theaccessTransformerrecord componentdepends- the value for thedependsrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
entrypoint
Returns the value of theentrypointrecord component.- Returns:
- the value of the
entrypointrecord component
-
asmEntrypoint
Returns the value of theasmEntrypointrecord component.- Returns:
- the value of the
asmEntrypointrecord component
-
accessTransformer
Returns the value of theaccessTransformerrecord component.- Returns:
- the value of the
accessTransformerrecord component
-
depends
-