Implemented scoreboard

This commit is contained in:
2023-09-25 03:35:48 +02:00
parent fb511d27e2
commit 7573ca71c5
9 changed files with 152 additions and 6 deletions
@@ -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);
}