Global ID -> Id rename

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
CraftBukkit/Spigot
2011-01-15 20:53:20 +01:00
parent 2bc8736604
commit fb25b100ab
9 changed files with 73 additions and 67 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;
}