-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1ab21c4
Showing
10 changed files
with
2,140 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |||
} | |||
} | |||
|
|||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |||
} | |||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.