Silent villager

This commit is contained in:
LCastr0 2017-01-16 01:57:42 -02:00
parent 9e4f756fe8
commit c571736def
3 changed files with 2 additions and 57 deletions

View File

@ -364,6 +364,7 @@ public class PetManager extends MiniClientPlugin<PetClient>
// Spawns villager
Villager villager = _creatureModule.SpawnEntity(zombie.getLocation(), Villager.class);
villager.setBaby();
UtilEnt.silence(villager, true);
_trueLovePets.put(zombie, new TrueLoveData(player, zombie, villager));
}

View File

@ -28,63 +28,6 @@ public class TrueLoveData
_villager = villager;
}
/*public void updateVillager()
{
if (_animatorVillager == null || !_animatorVillager.isRunning())
{
Location start = _player.getLocation().clone();
start.setDirection(new Vector(1, 0, 0));
_villager.teleport(start);
_animatorVillager = new AnimatorEntity(UtilServer.getPlugin(), _villager);
int i = 0;
for (double rad = 0; rad < Math.PI * 2; rad += Math.PI / POINTS)
{
i++;
double sin = Math.sin(rad) * 3;
double cos = Math.cos(rad) * 3;
_animatorVillager.addPoint(new AnimationPoint(2 * i, new Vector(sin, 0, cos), new Vector(cos, 0, -sin)));
}
_animatorVillager.start(_player);
}
}
public void updateZombie()
{
if (_animatorZombie != null)
{
if (_animatorZombie.isRunning())
{
return;
}
}
if (_step > 15)
{
_step++;
return;
}
_step = 0;
if (_animatorZombie == null || !_animatorZombie.isRunning())
{
Location start = _player.getLocation().clone();
start.setDirection(new Vector(1, 0, 0));
_zombie.teleport(start);
_animatorZombie = new AnimatorEntity(UtilServer.getPlugin(), _zombie);
int i = 0;
for (double rad = 0; rad < Math.PI * 2; rad += Math.PI / POINTS)
{
i++;
double sin = Math.sin(rad) * 3;
double cos = Math.cos(rad) * 3;
_animatorZombie.addPoint(new AnimationPoint(2 * i, new Vector(sin, 0, cos), new Vector(cos, 0, -sin)));
}
_animatorZombie.start(_player);
}
}*/
public void update()
{
double increment = (2 * Math.PI) / POINTS;

View File

@ -32,6 +32,7 @@ public class PowerPlayClubRewards
.put(YearMonth.of(2016, Month.NOVEMBER), new PowerPlayClubItem("Turkey Morph", SkinData.TURKEY.getSkull()))
.put(YearMonth.of(2016, Month.DECEMBER), new PowerPlayClubItem("Santa Morph", SkinData.SANTA.getSkull()))
.put(YearMonth.of(2017, Month.JANUARY), new PowerPlayClubItem("Over Easy Morph", new ItemStack(Material.EGG)))
.put(YearMonth.of(2017, Month.FEBRUARY), new PowerPlayClubItem("True Love Pet", new ItemStack(Material.APPLE)))
.build();
public static class PowerPlayClubItem