Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
lahwran committed Apr 29, 2011
0 parents commit 1ab21c4
Show file tree
Hide file tree
Showing 10 changed files with 2,140 additions and 0 deletions.
Binary file added compass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added marker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added minimap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mmarrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,060 changes: 2,060 additions & 0 deletions mod_ZanMinimap.java

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions net/lahwran/zanminimap/BlockColor.java
Original file line number Original file line Diff line number Diff line change
@@ -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;
}
}
33 changes: 33 additions & 0 deletions net/lahwran/zanminimap/TintType.java
Original file line number Original file line Diff line number Diff line change
@@ -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);
}
}

}
27 changes: 27 additions & 0 deletions net/lahwran/zanminimap/Waypoint.java
Original file line number Original file line Diff line number Diff line change
@@ -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;
}
}
Binary file added roundmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added waypoint.png
Loading
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.