mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:34:44 +01:00
SPIGOT-4003: Fix TropicalFish.getType
By: md_5 <git@md-5.net>
This commit is contained in:
parent
4a0fd18b27
commit
886827a6f4
1 changed files with 6 additions and 0 deletions
|
@ -5,6 +5,7 @@ import java.util.Map;
|
||||||
import net.minecraft.server.EntityTropicalFish;
|
import net.minecraft.server.EntityTropicalFish;
|
||||||
import org.bukkit.DyeColor;
|
import org.bukkit.DyeColor;
|
||||||
import org.bukkit.craftbukkit.CraftServer;
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
|
import org.bukkit.entity.EntityType;
|
||||||
import org.bukkit.entity.TropicalFish;
|
import org.bukkit.entity.TropicalFish;
|
||||||
|
|
||||||
public class CraftTropicalFish extends CraftFish implements TropicalFish {
|
public class CraftTropicalFish extends CraftFish implements TropicalFish {
|
||||||
|
@ -23,6 +24,11 @@ public class CraftTropicalFish extends CraftFish implements TropicalFish {
|
||||||
return "CraftTropicalFish";
|
return "CraftTropicalFish";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public EntityType getType() {
|
||||||
|
return EntityType.TROPICAL_FISH;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public DyeColor getPatternColor() {
|
public DyeColor getPatternColor() {
|
||||||
return getPatternColor(getHandle().getVariant());
|
return getPatternColor(getHandle().getVariant());
|
||||||
|
|
Loading…
Add table
Reference in a new issue