Skip to content

Commit

Permalink
chore: rename copy >>> copyFrom (as per MovingBlocks/gestalt#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
skaldarnar committed Aug 14, 2021
1 parent 469df04 commit b3c57c9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class FluidComponent implements Component<FluidComponent> {
public float volume;

@Override
public void copy(FluidComponent other) {
public void copyFrom(FluidComponent other) {
this.fluidType = other.fluidType;
this.volume = other.volume;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public boolean equals(Object o) {
}

@Override
public void copy(FluidContainerItemComponent other) {
public void copyFrom(FluidContainerItemComponent other) {
this.fluidType = other.fluidType;
this.volume = other.volume;
this.maxVolume = other.maxVolume;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class FluidInventoryAccessComponent implements Component<FluidInventoryAc
public Map<String, IntegerRange> output;

@Override
public void copy(FluidInventoryAccessComponent other) {
public void copyFrom(FluidInventoryAccessComponent other) {
this.input.clear();
for (Map.Entry<String, IntegerRange> entry : other.input.entrySet()) {
this.input.put(entry.getKey(), entry.getValue().copy());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public FluidInventoryComponent(int numSlots, float maximumVolume) {
}

@Override
public void copy(FluidInventoryComponent other) {
public void copyFrom(FluidInventoryComponent other) {
this.fluidSlots = Lists.newLinkedList(this.fluidSlots);
this.maximumVolumes = Lists.newLinkedList(maximumVolumes);
}
Expand Down

0 comments on commit b3c57c9

Please sign in to comment.