Use updated ProjectileUser method names
This commit is contained in:
parent
4436ba0710
commit
04cb0fb0b0
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user