Record Class SimpleItemOverrideProvider.ModelPair
java.lang.Object
java.lang.Record
dev.dhyces.trimmed.api.client.override.provider.SimpleItemOverrideProvider.ModelPair
- Enclosing class:
SimpleItemOverrideProvider
public static record SimpleItemOverrideProvider.ModelPair(@Nullable net.minecraft.resources.ResourceLocation resourceId, @Nullable net.minecraft.client.resources.model.ModelResourceLocation topLevelModelId)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModelPair(@Nullable net.minecraft.resources.ResourceLocation resourceId, @Nullable net.minecraft.client.resources.model.ModelResourceLocation topLevelModelId) Creates an instance of aModelPairrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Optional<net.minecraft.resources.ResourceLocation> Optional<net.minecraft.client.resources.model.ModelResourceLocation> final inthashCode()Returns a hash code value for this object.@Nullable net.minecraft.resources.ResourceLocationReturns the value of theresourceIdrecord component.@Nullable net.minecraft.client.resources.model.ModelResourceLocationReturns the value of thetopLevelModelIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
ModelPair
public ModelPair(@Nullable @Nullable net.minecraft.resources.ResourceLocation resourceId, @Nullable @Nullable net.minecraft.client.resources.model.ModelResourceLocation topLevelModelId) Creates an instance of aModelPairrecord class.- Parameters:
resourceId- the value for theresourceIdrecord componenttopLevelModelId- the value for thetopLevelModelIdrecord component
-
-
Method Details
-
getResourceId
-
getTopLevelModelId
-
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). -
resourceId
@Nullable public @Nullable net.minecraft.resources.ResourceLocation resourceId()Returns the value of theresourceIdrecord component.- Returns:
- the value of the
resourceIdrecord component
-
topLevelModelId
@Nullable public @Nullable net.minecraft.client.resources.model.ModelResourceLocation topLevelModelId()Returns the value of thetopLevelModelIdrecord component.- Returns:
- the value of the
topLevelModelIdrecord component
-