Permalink
Browse files

asdf

  • Loading branch information...
0 parents commit 1ab21c436bc93fc873d3429635ee5b856f01ff5a @lahwran committed Apr 29, 2011
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,20 @@
+/**
+ *
+ */
+package net.lahwran.zanminimap;
+
+/**
+ * Represents a block color.
+ * @author lahwran
+ */
+public class BlockColor {
+ public final int color;
+ public final short alpha;
+ public final TintType tintType;
+ public BlockColor(int color, int alpha, TintType tintType)
+ {
+ this.color=color;
+ this.alpha=(short)alpha;
+ this.tintType=tintType;
+ }
+}
@@ -0,0 +1,33 @@
+/**
+ *
+ */
+package net.lahwran.zanminimap;
+
+import java.util.HashMap;
+
+/**
+ * Represents the possible types of tint available for block colors
+ * @author lahwran
+ *
+ */
+public enum TintType
+{
+ //so it turns out that redstone is actually based on the metadata ...
+ NONE, GRASS, FOLIAGE, PINE, BIRCH, REDSTONE, COLORMULT;
+ public static final HashMap<String, TintType> map;
+
+ public static TintType get(String name)
+ {
+ return map.get(name);
+ }
+
+ static
+ {
+ map = new HashMap<String, TintType>();
+ for (TintType t : TintType.values())
+ {
+ map.put(t.name(), t);
+ }
+ }
+
+}
@@ -0,0 +1,27 @@
+package net.lahwran.zanminimap;
+public class Waypoint {
+ public String name;
+ public int x;
+ public int z;
+ public boolean enabled;
+ public float red = 0.0F;
+ public float green = 1.0F;
+ public float blue = 0.0F;
+
+ public Waypoint(String name, int x, int z, boolean enabled) {
+ this.name = name;
+ this.x = x;
+ this.z = z;
+ this.enabled = enabled;
+ }
+
+ public Waypoint(String name, int x, int z, boolean enabled, float red, float green, float blue) {
+ this.name = name;
+ this.x = x;
+ this.z = z;
+ this.enabled = enabled;
+ this.red = red;
+ this.green = green;
+ this.blue = blue;
+ }
+}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1ab21c4

Please sign in to comment.