mirror of
https://github.com/FabricMC/fabric.git
synced 2025-09-06 11:24:23 +00:00
Rename TransferVariant.componentsMatches -> componentsMatch (#3645)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user