Global ID -> Id rename

This commit is contained in:
Erik Broes
2011-01-15 20:53:20 +01:00
parent e4a31ce206
commit dea72d6623
11 changed files with 87 additions and 71 deletions

View File

@@ -110,16 +110,16 @@ public class CraftBlock implements Block {
* @param type Material to change this block to
*/
public void setType(final Material type) {
setTypeID(type.getID());
setTypeId(type.getId());
}
/**
* Sets the type-ID of this block
* Sets the type-id of this block
*
* @param type Type-ID to change this block to
* @param type Type-Id to change this block to
* @return whether the block was changed
*/
public boolean setTypeID(final int type) {
public boolean setTypeId(final int type) {
this.type = type;
return world.getHandle().e(x, y, z, type);
}
@@ -130,15 +130,15 @@ public class CraftBlock implements Block {
* @return block type
*/
public Material getType() {
return Material.getMaterial(getTypeID());
return Material.getMaterial(getTypeId());
}
/**
* Gets the type-ID of this block
* Gets the type-id of this block
*
* @return block type-ID
* @return block type-id
*/
public int getTypeID() {
public int getTypeId() {
return type;
}