Add missing DeathEffectData and DeathText.

This commit is contained in:
Thanos paravantis 2016-01-01 15:30:16 +02:00
parent 49e3fabee5
commit bd63ff84e7
2 changed files with 93 additions and 0 deletions

View File

@ -0,0 +1,75 @@
package nautilus.game.arcade.game.games.mineware.effect;
import java.util.ArrayList;
import org.bukkit.Location;
import org.bukkit.entity.ArmorStand;
import org.bukkit.entity.Item;
import org.bukkit.entity.Player;
import mineplex.core.hologram.Hologram;
public class DeathEffectData
{
private Player _player;
private Location _death;
private ArrayList<Item> _foodItems = new ArrayList<Item>();
private ArmorStand _chickenHead;
private Hologram _hologram;
public DeathEffectData(Player player, Location death)
{
_player = player;
_death = death;
}
public void addFoodItems(ArrayList<Item> foodItems)
{
_foodItems = foodItems;
}
public boolean hasDroppedFoodItems()
{
return !_foodItems.isEmpty();
}
public void setChickenHead(ArmorStand chickenHead)
{
_chickenHead = chickenHead;
}
public boolean hasFinished()
{
return _foodItems.isEmpty() && _chickenHead.isDead();
}
public void setHologram(Hologram hologram)
{
_hologram = hologram;
}
public Player getPlayer()
{
return _player;
}
public Location getLocation()
{
return _death;
}
public ArrayList<Item> getFoodItems()
{
return _foodItems;
}
public ArmorStand getChickenHead()
{
return _chickenHead;
}
public Hologram getHologram()
{
return _hologram;
}
}

View File

@ -0,0 +1,18 @@
package nautilus.game.arcade.game.games.mineware.effect;
import mineplex.core.common.util.UtilMath;
public class DeathText
{
private String[] _text = {
"Nom nom nom!",
"Bawk Bawk!",
"Delicious Meal!",
"Nom nom, bawk!"
};
public String getRandom()
{
return UtilMath.randomElement(_text);
}
}