Rename TransferVariant.componentsMatches -> componentsMatch ()

This commit is contained in:
modmuss 2024-03-12 09:25:33 +00:00 committed by GitHub
parent 0e8f45ba8d
commit 168bf74f8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions
fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric
api/transfer/v1/storage
impl/transfer

View file

@ -59,7 +59,7 @@ public interface TransferVariant<O> {
*
* <p>Note: True is returned if both tags are {@code null}.
*/
default boolean componentsMatches(ComponentChanges other) {
default boolean componentsMatch(ComponentChanges other) {
return Objects.equals(getComponents(), other);
}

View file

@ -99,7 +99,7 @@ public class FluidVariantImpl implements FluidVariant {
FluidVariantImpl fluidVariant = (FluidVariantImpl) o;
// fail fast with hash code
return hashCode == fluidVariant.hashCode && fluid == fluidVariant.fluid && componentsMatches(fluidVariant.components);
return hashCode == fluidVariant.hashCode && fluid == fluidVariant.fluid && componentsMatch(fluidVariant.components);
}
@Override

View file

@ -88,7 +88,7 @@ public class ItemVariantImpl implements ItemVariant {
ItemVariantImpl ItemVariant = (ItemVariantImpl) o;
// fail fast with hash code
return hashCode == ItemVariant.hashCode && item == ItemVariant.item && componentsMatches(ItemVariant.components);
return hashCode == ItemVariant.hashCode && item == ItemVariant.item && componentsMatch(ItemVariant.components);
}
@Override