62 lines
1.3 KiB
Java
62 lines
1.3 KiB
Java
|
|
package com.alttd.fishingevent.fish;
|
||
|
|
|
||
|
|
|
||
|
|
import com.alttd.fishingevent.objects.Rarity;
|
||
|
|
import net.kyori.adventure.text.Component;
|
||
|
|
import org.bukkit.Location;
|
||
|
|
import org.bukkit.Particle;
|
||
|
|
import org.bukkit.entity.Player;
|
||
|
|
import org.bukkit.inventory.ItemStack;
|
||
|
|
|
||
|
|
import java.time.Instant;
|
||
|
|
import java.util.ArrayList;
|
||
|
|
import java.util.Set;
|
||
|
|
|
||
|
|
public class LavaFish extends Fish {
|
||
|
|
|
||
|
|
public LavaFish(float minLength, float maxLength, String fishName, Rarity rarity, ItemStack itemStack, ArrayList<Set<Particle>> particles) {
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public ItemStack getFishItem(Player player) {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public float getLength() {
|
||
|
|
return 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public Component fishName() {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public String normalFishName() {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public Rarity getRarity() {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void spawnParticles(Location location) {
|
||
|
|
//TODO run async function in here
|
||
|
|
//TODO color particles based on rarity?
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean validRod(ItemStack fishingRod) {
|
||
|
|
//TODO check data to see if its a lava rod
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Instant getSpawnTime(ItemStack fishingRod) {
|
||
|
|
//TODO calc based on rod enchant level and check if the rod is valid maybe?
|
||
|
|
return Instant.now();
|
||
|
|
}
|
||
|
|
}
|