Commits

sk89q authored and Nathan Adams committed c81b816b723
Made X, Y, and Z components in Vector protected.
No tags

src/main/java/org/bukkit/Vector.java

Modified
1 1 package org.bukkit;
2 2
3 3 /**
4 4 * Represents a mutable vector.
5 5 *
6 6 * @author sk89q
7 7 */
8 8 public class Vector implements Cloneable {
9 9 private static final long serialVersionUID = -2657651106777219169L;
10 10
11 - private double x;
12 - private double y;
13 - private double z;
11 + protected double x;
12 + protected double y;
13 + protected double z;
14 14
15 15 public Vector(int x, int y, int z) {
16 16 this.x = x;
17 17 this.y = y;
18 18 this.z = z;
19 19 }
20 20
21 21 public Vector(double x, double y, double z) {
22 22 this.x = x;
23 23 this.y = y;

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut