mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-21 03:10:54 -04:00
Rename TransferVariant.componentsMatches -> componentsMatch (#3645)
This commit is contained in:
parent
0e8f45ba8d
commit
168bf74f8b
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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue