Port to 1.11

This commit is contained in:
yueh
2016-12-08 12:42:00 +01:00
parent 589730bfad
commit ed9e6dd21c
262 changed files with 4027 additions and 3954 deletions
+3 -3
View File
@@ -44,13 +44,13 @@ public final class AECommand extends CommandBase
}
@Override
public String getCommandName()
public String getName()
{
return "ae2";
}
@Override
public String getCommandUsage( final ICommandSender icommandsender )
public String getUsage( final ICommandSender icommandsender )
{
return "commands.ae2.usage";
}
@@ -90,7 +90,7 @@ public final class AECommand extends CommandBase
try
{
final Commands c = Commands.valueOf( args[0] );
if( sender.canCommandSenderUseCommand( c.level, this.getCommandName() ) )
if( sender.canUseCommand( c.level, this.getName() ) )
{
c.command.call( this.srv, args, sender );
}
@@ -82,7 +82,7 @@ public class ServerHelper extends CommonHelper
if( server != null )
{
return (List) server.getPlayerList().getPlayerList();
return (List) server.getPlayerList().getPlayers();
}
}
@@ -101,7 +101,7 @@ public class ServerHelper extends CommonHelper
{
final EntityPlayerMP entityplayermp = (EntityPlayerMP) o;
if( entityplayermp != p && entityplayermp.worldObj == w )
if( entityplayermp != p && entityplayermp.world == w )
{
final double dX = x - entityplayermp.posX;
final double dY = y - entityplayermp.posY;
@@ -116,7 +116,7 @@ public class ServerHelper extends CommonHelper
}
@Override
public void spawnEffect( final EffectType type, final World worldObj, final double posX, final double posY, final double posZ, final Object o )
public void spawnEffect( final EffectType type, final World world, final double posX, final double posY, final double posZ, final Object o )
{
// :P
}
@@ -90,12 +90,12 @@ public class ChunkLogger implements ISubCommand
if( this.enabled )
{
MinecraftForge.EVENT_BUS.register( this );
sender.addChatMessage( new TextComponentTranslation( "commands.ae2.ChunkLoggerOn" ) );
sender.sendMessage( new TextComponentTranslation( "commands.ae2.ChunkLoggerOn" ) );
}
else
{
MinecraftForge.EVENT_BUS.unregister( this );
sender.addChatMessage( new TextComponentTranslation( "commands.ae2.ChunkLoggerOff" ) );
sender.sendMessage( new TextComponentTranslation( "commands.ae2.ChunkLoggerOff" ) );
}
}
}
@@ -41,6 +41,6 @@ public class Supporters implements ISubCommand
public void call( final MinecraftServer srv, final String[] data, final ICommandSender sender )
{
final String[] who = { "Stig Halvorsen", "Josh Ricker", "Jenny \"Othlon\" Sutherland", "Hristo Bogdanov", "BevoLJ" };
sender.addChatMessage( new TextComponentString( "Special thanks to " + Joiner.on( ", " ).join( who ) ) );
sender.sendMessage( new TextComponentString( "Special thanks to " + Joiner.on( ", " ).join( who ) ) );
}
}