mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Forgot to commit this
This commit is contained in:
parent
40639ed5a9
commit
4c6647e332
@ -1,26 +0,0 @@
|
||||
package com.gmail.nossr50.datatypes;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.getspout.spoutapi.gui.GenericLabel;
|
||||
import org.getspout.spoutapi.gui.GenericTexture;
|
||||
|
||||
import com.gmail.nossr50.spout.SpoutStuff;
|
||||
|
||||
public class HealthBarMMO
|
||||
{
|
||||
public GenericTexture health_bar = null;
|
||||
public GenericLabel health_name = null;
|
||||
public String playerName = null;
|
||||
|
||||
public HealthBarMMO(LivingEntity entity, String name)
|
||||
{
|
||||
health_name = new GenericLabel();
|
||||
health_name.setText(ChatColor.GREEN+name).setDirty(true);
|
||||
|
||||
health_bar = new GenericTexture();
|
||||
health_bar.setUrl(SpoutStuff.getHealthBarURL(entity.getHealth())).setHeight(8).setWidth(64).setDirty(true);
|
||||
|
||||
playerName = name;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user