Record Class ForgeFeature.Bound
java.lang.Object
java.lang.Record
net.neoforged.neoforgespi.locating.ForgeFeature.Bound
- Record Components:
featureName
- the name of the featurefeatureBound
- the requested bound
- Enclosing class:
ForgeFeature
public static record ForgeFeature.Bound(String featureName, String featureBound, IModInfo modInfo)
extends Record
A Bound, from a mods.toml file
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The field for thefeatureBound
record component.private final String
The field for thefeatureName
record component.private final IModInfo
The field for themodInfo
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
bound()
final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefeatureBound
record component.Returns the value of thefeatureName
record component.final int
hashCode()
Returns a hash code value for this object.modInfo()
Returns the value of themodInfo
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
featureName
The field for thefeatureName
record component. -
featureBound
The field for thefeatureBound
record component. -
modInfo
The field for themodInfo
record component.
-
-
Constructor Details
-
Bound
Creates an instance of aBound
record class.- Parameters:
featureName
- the value for thefeatureName
record componentfeatureBound
- the value for thefeatureBound
record componentmodInfo
- the value for themodInfo
record component
-
-
Method Details
-
bound
public <T> T bound() -
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)
. -
featureName
Returns the value of thefeatureName
record component.- Returns:
- the value of the
featureName
record component
-
featureBound
Returns the value of thefeatureBound
record component.- Returns:
- the value of the
featureBound
record component
-
modInfo
Returns the value of themodInfo
record component.- Returns:
- the value of the
modInfo
record component
-