Implemented scoreboard
This commit is contained in:
@@ -39,7 +39,7 @@ public abstract class Fish {
|
||||
* Gives back a different result each call, it generates a length based on the min and max length values for a fish
|
||||
* @return a random length for this fish
|
||||
*/
|
||||
public abstract float getLength();
|
||||
public abstract float generateLength();
|
||||
|
||||
public abstract Component fishName();
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ public class LavaFish extends Fish {
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getLength() {
|
||||
public float generateLength() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ public class WaterFish extends Fish {
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getLength() {
|
||||
public float generateLength() {
|
||||
return new Random().nextFloat(minLength, maxLength);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user