Applied Eclipse formatting.

This commit is contained in:
FrozenCow 2011-02-05 02:25:18 +01:00
parent 4f138a56da
commit 3940b91d0e
25 changed files with 1763 additions and 1708 deletions

View file

@ -4,54 +4,54 @@ import java.util.logging.Logger;
import org.dynmap.MapTile;
public class KzedMapTile extends MapTile {
protected static final Logger log = Logger.getLogger("Minecraft");
protected static final Logger log = Logger.getLogger("Minecraft");
public KzedMap map;
public KzedMap map;
public MapTileRenderer renderer;
public MapTileRenderer renderer;
/* projection position */
public int px, py;
/* projection position */
public int px, py;
/* minecraft space origin */
public int mx, my, mz;
/* minecraft space origin */
public int mx, my, mz;
/* create new MapTile */
public KzedMapTile(KzedMap map, MapTileRenderer renderer, int px, int py) {
super(map);
this.map = map;
this.renderer = renderer;
this.px = px;
this.py = py;
/* create new MapTile */
public KzedMapTile(KzedMap map, MapTileRenderer renderer, int px, int py) {
super(map);
this.map = map;
this.renderer = renderer;
this.px = px;
this.py = py;
mx = KzedMap.anchorx + px / 2 + py / 2;
my = KzedMap.anchory;
mz = KzedMap.anchorz + px / 2 - py / 2;
}
mx = KzedMap.anchorx + px / 2 + py / 2;
my = KzedMap.anchory;
mz = KzedMap.anchorz + px / 2 - py / 2;
}
@Override
public String getName() {
return renderer.getName() + "_" + px + "_" + py;
}
@Override
public String getName() {
return renderer.getName() + "_" + px + "_" + py;
}
public int hashCode() {
return getName().hashCode();
}
public int hashCode() {
return getName().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj instanceof KzedMapTile) {
return equals((KzedMapTile) obj);
}
return super.equals(obj);
}
@Override
public boolean equals(Object obj) {
if (obj instanceof KzedMapTile) {
return equals((KzedMapTile) obj);
}
return super.equals(obj);
}
public boolean equals(KzedMapTile o) {
return o.getName().equals(getName());
}
public boolean equals(KzedMapTile o) {
return o.getName().equals(getName());
}
/* return a simple string representation... */
public String toString() {
return getName();
}
/* return a simple string representation... */
public String toString() {
return getName();
}
}