Merge pull request #42 from tim-savage/fences
Update Visualization.java with 1.8 fence materials
This commit is contained in:
commit
47fd2d951a
|
|
@ -284,13 +284,25 @@ public class Visualization
|
||||||
private static boolean isTransparent(Block block, boolean waterIsTransparent)
|
private static boolean isTransparent(Block block, boolean waterIsTransparent)
|
||||||
{
|
{
|
||||||
return ( block.getType() != Material.SNOW && (
|
return ( block.getType() != Material.SNOW && (
|
||||||
block.getType() == Material.AIR ||
|
block.getType() == Material.AIR ||
|
||||||
block.getType() == Material.FENCE ||
|
block.getType() == Material.FENCE ||
|
||||||
block.getType() == Material.SIGN ||
|
block.getType() == Material.ACACIA_FENCE ||
|
||||||
block.getType() == Material.SIGN_POST ||
|
block.getType() == Material.BIRCH_FENCE ||
|
||||||
block.getType() == Material.WALL_SIGN ||
|
block.getType() == Material.DARK_OAK_FENCE ||
|
||||||
(waterIsTransparent && block.getType() == Material.STATIONARY_WATER) ||
|
block.getType() == Material.JUNGLE_FENCE ||
|
||||||
block.getType().isTransparent()));
|
block.getType() == Material.NETHER_FENCE ||
|
||||||
|
block.getType() == Material.SPRUCE_FENCE ||
|
||||||
|
block.getType() == Material.FENCE_GATE ||
|
||||||
|
block.getType() == Material.ACACIA_FENCE_GATE ||
|
||||||
|
block.getType() == Material.BIRCH_FENCE_GATE ||
|
||||||
|
block.getType() == Material.DARK_OAK_FENCE_GATE ||
|
||||||
|
block.getType() == Material.SPRUCE_FENCE_GATE ||
|
||||||
|
block.getType() == Material.JUNGLE_FENCE_GATE ||
|
||||||
|
block.getType() == Material.SIGN ||
|
||||||
|
block.getType() == Material.SIGN_POST ||
|
||||||
|
block.getType() == Material.WALL_SIGN ||
|
||||||
|
(waterIsTransparent && block.getType() == Material.STATIONARY_WATER) ||
|
||||||
|
block.getType().isTransparent()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Visualization fromClaims(Iterable<Claim> claims, int height, VisualizationType type, Location locality)
|
public static Visualization fromClaims(Iterable<Claim> claims, int height, VisualizationType type, Location locality)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user