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)
|
if (target instanceof Player)
|
||||||
{
|
{
|
||||||
|
@ -342,7 +342,7 @@ public class ChallengeAnvilDance extends Challenge
|
|||||||
@Override
|
@Override
|
||||||
public void onCollide(LivingEntity target, Block block, ProjectileUser data)
|
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;
|
Player player = (Player) target;
|
||||||
|
|
||||||
|
@ -186,10 +186,10 @@ public class ChallengeBlockLobbers extends Challenge
|
|||||||
@Override
|
@Override
|
||||||
public void onCollide(LivingEntity target, Block block, ProjectileUser data)
|
public void onCollide(LivingEntity target, Block block, ProjectileUser data)
|
||||||
{
|
{
|
||||||
if (!(data.GetThrown() instanceof FallingBlock))
|
if (!(data.getThrown() instanceof FallingBlock))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!(data.GetThrower() instanceof Player))
|
if (!(data.getThrower() instanceof Player))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!(target instanceof Player))
|
if (!(target instanceof Player))
|
||||||
@ -198,11 +198,11 @@ public class ChallengeBlockLobbers extends Challenge
|
|||||||
if (!isPlayerValid((Player) target))
|
if (!isPlayerValid((Player) target))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (target.equals(data.GetThrower()))
|
if (target.equals(data.getThrower()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
UtilAction.velocity(target, UtilAlg.getTrajectory2d(data.GetThrown().getLocation(), target.getLocation()), 0.8, false, 0, 0.3, 0.5, true);
|
UtilAction.velocity(target, UtilAlg.getTrajectory2d(data.getThrown().getLocation(), target.getLocation()), 0.8, false, 0, 0.3, 0.5, true);
|
||||||
data.GetThrown().remove();
|
data.getThrown().remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void switchToAvailableSlot(Player player)
|
public void switchToAvailableSlot(Player player)
|
||||||
|
@ -366,7 +366,7 @@ public class ChallengeFallingBlocks extends Challenge implements NumberTracker
|
|||||||
@Override
|
@Override
|
||||||
public void onCollide(LivingEntity target, Block block, ProjectileUser data)
|
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;
|
Player player = (Player) target;
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ public class ChallengeWaveCrush extends Challenge implements NumberTracker
|
|||||||
@Override
|
@Override
|
||||||
public void onCollide(LivingEntity target, Block block, ProjectileUser data)
|
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;
|
Player player = (Player) target;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user