Package com.jtprince.coordinateoffset
Record Class OffsetData.Source.Provider
java.lang.Object
java.lang.Record
com.jtprince.coordinateoffset.OffsetData.Source.Provider
- All Implemented Interfaces:
OffsetData.Source
- Enclosing interface:
OffsetData.Source
public static record OffsetData.Source.Provider(OffsetProvider provider, @Nullable Integer overrideRuleIndex)
extends Record
implements OffsetData.Source
This offset was generated by a configured OffsetProvider class.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jtprince.coordinateoffset.OffsetData.Source
OffsetData.Source.BedrockBypass, OffsetData.Source.PermissionBypass, OffsetData.Source.PluginSet, OffsetData.Source.Provider, OffsetData.Source.SetCommand -
Constructor Summary
ConstructorsConstructorDescriptionProvider(OffsetProvider provider, @Nullable Integer overrideRuleIndex) Creates an instance of aProviderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable IntegerReturns the value of theoverrideRuleIndexrecord component.provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Provider
Creates an instance of aProviderrecord class.- Parameters:
provider- the value for theproviderrecord componentoverrideRuleIndex- the value for theoverrideRuleIndexrecord component
-
-
Method Details
-
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). -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
overrideRuleIndex
Returns the value of theoverrideRuleIndexrecord component.- Returns:
- the value of the
overrideRuleIndexrecord component
-