Code cleanup
This commit is contained in:
parent
6187b4ddb8
commit
981b15da33
2 changed files with 9 additions and 45 deletions
|
@ -113,38 +113,6 @@ public abstract class BlockAbstractContainer extends BlockContainer implements I
|
|||
return false;
|
||||
}
|
||||
|
||||
// FIXME untested
|
||||
/*
|
||||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer entityPlayer, int side, float hitX, float hitY, float hitZ) {
|
||||
if (world.isRemote) {
|
||||
return false;
|
||||
}
|
||||
|
||||
boolean hasResponse = false;
|
||||
TileEntity tileEntity = world.getTileEntity(x, y, z);
|
||||
if (tileEntity instanceof IUpgradable) {
|
||||
IUpgradable upgradable = (IUpgradable) tileEntity;
|
||||
ItemStack itemStack = entityPlayer.inventory.getCurrentItem();
|
||||
if (itemStack != null) {
|
||||
Item i = itemStack.getItem();
|
||||
if (i instanceof ItemWarpUpgrade) {
|
||||
if (upgradable.takeUpgrade(EnumUpgradeTypes.values()[itemStack.getItemDamage()], false)) {
|
||||
if (!entityPlayer.capabilities.isCreativeMode)
|
||||
entityPlayer.inventory.decrStackSize(entityPlayer.inventory.currentItem, 1);
|
||||
entityPlayer.addChatMessage("Upgrade accepted");
|
||||
} else {
|
||||
entityPlayer.addChatMessage("Upgrade declined");
|
||||
}
|
||||
hasResponse = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return hasResponse;
|
||||
}
|
||||
/**/
|
||||
|
||||
@Override
|
||||
public void onNeighborBlockChange(World world, int x, int y, int z, Block block) {
|
||||
super.onNeighborBlockChange(world, x, y, z, block);
|
||||
|
|
|
@ -3,27 +3,23 @@ package cr0s.warpdrive.config;
|
|||
public class InvalidXmlException extends Exception {
|
||||
|
||||
public InvalidXmlException() {
|
||||
super("An unknown xml error occurred");
|
||||
super("An unknown XML error occurred");
|
||||
}
|
||||
|
||||
public InvalidXmlException(String arg0) {
|
||||
super(arg0);
|
||||
// TODO Auto-generated constructor stub
|
||||
public InvalidXmlException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public InvalidXmlException(Throwable arg0) {
|
||||
super(arg0);
|
||||
// TODO Auto-generated constructor stub
|
||||
public InvalidXmlException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
|
||||
public InvalidXmlException(String arg0, Throwable arg1) {
|
||||
super(arg0, arg1);
|
||||
// TODO Auto-generated constructor stub
|
||||
public InvalidXmlException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public InvalidXmlException(String arg0, Throwable arg1, boolean arg2, boolean arg3) {
|
||||
super(arg0, arg1, arg2, arg3);
|
||||
// TODO Auto-generated constructor stub
|
||||
public InvalidXmlException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
|
||||
super(message, cause, enableSuppression, writableStackTrace);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue