Use updated ProjectileUser method names

This commit is contained in:
Thanos Paravantis 2016-06-28 23:09:52 +03:00
parent 4436ba0710
commit 04cb0fb0b0
5 changed files with 9 additions and 9 deletions

View File

@ -1771,7 +1771,7 @@ public class BawkBawkBattles extends TeamGame implements IThrown
}
}
if (data.GetThrown() instanceof Chicken)
if (data.getThrown() instanceof Chicken)
{
if (target instanceof Player)
{

View File

@ -342,7 +342,7 @@ public class ChallengeAnvilDance extends Challenge
@Override
public void onCollide(LivingEntity target, Block block, ProjectileUser data)
{
if (target instanceof Player && data.GetThrown() instanceof FallingBlock)
if (target instanceof Player && data.getThrown() instanceof FallingBlock)
{
Player player = (Player) target;

View File

@ -186,10 +186,10 @@ public class ChallengeBlockLobbers extends Challenge
@Override
public void onCollide(LivingEntity target, Block block, ProjectileUser data)
{
if (!(data.GetThrown() instanceof FallingBlock))
if (!(data.getThrown() instanceof FallingBlock))
return;
if (!(data.GetThrower() instanceof Player))
if (!(data.getThrower() instanceof Player))
return;
if (!(target instanceof Player))
@ -198,11 +198,11 @@ public class ChallengeBlockLobbers extends Challenge
if (!isPlayerValid((Player) target))
return;
if (target.equals(data.GetThrower()))
if (target.equals(data.getThrower()))
return;
UtilAction.velocity(target, UtilAlg.getTrajectory2d(data.GetThrown().getLocation(), target.getLocation()), 0.8, false, 0, 0.3, 0.5, true);
data.GetThrown().remove();
UtilAction.velocity(target, UtilAlg.getTrajectory2d(data.getThrown().getLocation(), target.getLocation()), 0.8, false, 0, 0.3, 0.5, true);
data.getThrown().remove();
}
public void switchToAvailableSlot(Player player)

View File

@ -366,7 +366,7 @@ public class ChallengeFallingBlocks extends Challenge implements NumberTracker
@Override
public void onCollide(LivingEntity target, Block block, ProjectileUser data)
{
if (target instanceof Player && data.GetThrown() instanceof FallingBlock)
if (target instanceof Player && data.getThrown() instanceof FallingBlock)
{
Player player = (Player) target;

View File

@ -155,7 +155,7 @@ public class ChallengeWaveCrush extends Challenge implements NumberTracker
@Override
public void onCollide(LivingEntity target, Block block, ProjectileUser data)
{
if (target instanceof Player && data.GetThrown() instanceof FallingBlock)
if (target instanceof Player && data.getThrown() instanceof FallingBlock)
{
Player player = (Player) target;