summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2011-01-15 20:53:43 +0100
committerErik Broes <erikbroes@grum.nl>2011-01-15 20:54:06 +0100
commit7754b088934439f27aaf05ef114470a3e021afeb (patch)
tree64716ccf6c1db1d1599987378894a4d52aeee62d
parentc25b2984b54b3305ad91246fbdea8c88e63666ab (diff)
downloadbukkit-7754b088934439f27aaf05ef114470a3e021afeb.tar
bukkit-7754b088934439f27aaf05ef114470a3e021afeb.tar.gz
bukkit-7754b088934439f27aaf05ef114470a3e021afeb.tar.lz
bukkit-7754b088934439f27aaf05ef114470a3e021afeb.tar.xz
bukkit-7754b088934439f27aaf05ef114470a3e021afeb.zip
Global ID -> Id rename
-rw-r--r--src/main/java/org/bukkit/Block.java12
-rw-r--r--src/main/java/org/bukkit/Entity.java6
-rw-r--r--src/main/java/org/bukkit/ItemStack.java22
-rw-r--r--src/main/java/org/bukkit/Material.java7
-rw-r--r--src/main/java/org/bukkit/block/BlockState.java12
-rw-r--r--src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java2
-rw-r--r--src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java4
-rw-r--r--src/main/java/org/bukkit/material/MaterialData.java6
8 files changed, 35 insertions, 36 deletions
diff --git a/src/main/java/org/bukkit/Block.java b/src/main/java/org/bukkit/Block.java
index 90d6523d..6a28c798 100644
--- a/src/main/java/org/bukkit/Block.java
+++ b/src/main/java/org/bukkit/Block.java
@@ -62,11 +62,11 @@ public interface Block {
Material getType();
/**
- * Gets the type-ID of this block
+ * Gets the type-id of this block
*
- * @return block type-ID
+ * @return block type-id
*/
- int getTypeID();
+ int getTypeId();
/**
* Gets the light level between 0-15
@@ -125,12 +125,12 @@ public interface Block {
void setType(Material type);
/**
- * 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
*/
- boolean setTypeID(int type);
+ boolean setTypeId(int type);
/**
* Gets the face relation of this block compared to the given block<br />
diff --git a/src/main/java/org/bukkit/Entity.java b/src/main/java/org/bukkit/Entity.java
index 9b4e63d0..1ffa8501 100644
--- a/src/main/java/org/bukkit/Entity.java
+++ b/src/main/java/org/bukkit/Entity.java
@@ -34,9 +34,9 @@ public interface Entity {
public void teleportTo(Entity destination);
/**
- * Returns a unique ID for this entity
+ * Returns a unique id for this entity
*
- * @return Entity ID
+ * @return Entity id
*/
- public int getEntityID();
+ public int getEntityId();
}
diff --git a/src/main/java/org/bukkit/ItemStack.java b/src/main/java/org/bukkit/ItemStack.java
index e318cd7a..8e4e04cb 100644
--- a/src/main/java/org/bukkit/ItemStack.java
+++ b/src/main/java/org/bukkit/ItemStack.java
@@ -25,7 +25,7 @@ public class ItemStack {
}
public ItemStack(final Material type, final int amount) {
- this(type.getID(), amount);
+ this(type.getId(), amount);
}
public ItemStack(final int type, final int amount, final byte damage) {
@@ -33,7 +33,7 @@ public class ItemStack {
}
public ItemStack(final Material type, final int amount, final byte damage) {
- this(type.getID(), amount, damage);
+ this(type.getId(), amount, damage);
}
public ItemStack(final int type, final int amount, final byte damage, final byte data) {
@@ -44,7 +44,7 @@ public class ItemStack {
}
public ItemStack(final Material type, final int amount, final byte damage, final byte data) {
- this(type.getID(), amount, damage, data);
+ this(type.getId(), amount, damage, data);
}
/**
@@ -64,26 +64,26 @@ public class ItemStack {
* @param type New type to set the items in this stack to
*/
public void setType(Material type) {
- setTypeID(type.getID());
+ setTypeId(type.getId());
}
/**
- * Gets the type ID of this item
+ * Gets the type id of this item
*
- * @return Type ID of the items in this stack
+ * @return Type Id of the items in this stack
*/
- public int getTypeID() {
+ public int getTypeId() {
return type;
}
/**
- * Sets the type ID of this item<br />
+ * Sets the type id of this item<br />
* <br />
* Note that in doing so you will reset the MaterialData for this stack
*
- * @param type New type ID to set the items in this stack to
+ * @param type New type id to set the items in this stack to
*/
- public void setTypeID(int type) {
+ public void setTypeId(int type) {
this.type = type;
createData((byte)0);
}
@@ -191,6 +191,6 @@ public class ItemStack {
}
public boolean equals(ItemStack item) {
- return item.getAmount() == getAmount() && item.getTypeID() == getTypeID();
+ return item.getAmount() == getAmount() && item.getTypeId() == getTypeId();
}
}
diff --git a/src/main/java/org/bukkit/Material.java b/src/main/java/org/bukkit/Material.java
index a7b790f4..c5f363f7 100644
--- a/src/main/java/org/bukkit/Material.java
+++ b/src/main/java/org/bukkit/Material.java
@@ -11,7 +11,7 @@ import org.bukkit.material.MaterialData;
import org.bukkit.material.Wool;
/**
- * An enum of all material IDs accepted by the official server + client
+ * An enum of all material ids accepted by the official server + client
*/
public enum Material {
AIR(0),
@@ -213,7 +213,7 @@ public enum Material {
this.data = data;
}
- public int getID() {
+ public int getId() {
return id;
}
@@ -260,9 +260,8 @@ public enum Material {
static {
for (Material material : values()) {
- lookupId.put(material.getID(), material);
+ lookupId.put(material.getId(), material);
lookupName.put(material.name(), material);
}
}
-
}
diff --git a/src/main/java/org/bukkit/block/BlockState.java b/src/main/java/org/bukkit/block/BlockState.java
index acfc3209..82d94f88 100644
--- a/src/main/java/org/bukkit/block/BlockState.java
+++ b/src/main/java/org/bukkit/block/BlockState.java
@@ -38,11 +38,11 @@ public interface BlockState {
Material getType();
/**
- * Gets the type-ID of this block
+ * Gets the type-id of this block
*
- * @return block type-ID
+ * @return block type-id
*/
- int getTypeID();
+ int getTypeId();
/**
* Gets the light level between 0-15
@@ -101,11 +101,11 @@ public interface BlockState {
void setType(Material type);
/**
- * 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
*/
- void setTypeID(int type);
+ void setTypeId(int type);
/**
* Attempts to update the block represented by this state, setting it to the
diff --git a/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java b/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java
index 1627a2be..b73bbf58 100644
--- a/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java
+++ b/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java
@@ -40,7 +40,7 @@ public class BlockCanBuildEvent extends BlockEvent {
return Material.getMaterial(material);
}
- public int getMaterialID() {
+ public int getMaterialId() {
return material;
}
}
diff --git a/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java b/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java
index 17c7b6bc..cba0088d 100644
--- a/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java
+++ b/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java
@@ -21,9 +21,9 @@ public class BlockPhysicsEvent extends BlockEvent {
/**
* Gets the type of block that changed, causing this event
*
- * @return Changed block's type ID
+ * @return Changed block's type id
*/
- public int getChangedTypeID() {
+ public int getChangedTypeId() {
return changed;
}
diff --git a/src/main/java/org/bukkit/material/MaterialData.java b/src/main/java/org/bukkit/material/MaterialData.java
index 186dc95d..e5a5b085 100644
--- a/src/main/java/org/bukkit/material/MaterialData.java
+++ b/src/main/java/org/bukkit/material/MaterialData.java
@@ -25,7 +25,7 @@ public class MaterialData {
}
public MaterialData(final Material type, final byte data) {
- this(type.getID(), data);
+ this(type.getId(), data);
}
/**
@@ -56,9 +56,9 @@ public class MaterialData {
}
/**
- * Gets the Material ID that this MaterialData represents
+ * Gets the Material Id that this MaterialData represents
*
- * @return Material ID represented by this MaterialData
+ * @return Material Id represented by this MaterialData
*/
public int getItemTypeId() {
return type;