package de.st_ddt.crazyutil.geo.block;

import org.bukkit.Location;
import org.bukkit.block.Block;

import de.st_ddt.crazyutil.geo.location.GeoLocation;

public class GeoBlock extends GeoLocation
{

	protected int material;
	protected byte data;

	// protected BlockState state;
	public GeoBlock(final Block block)
	{
		super(block.getX(), block.getY(), block.getZ());
		material = block.getTypeId();
		data = block.getData();
		// state = block.getState();
	}

	public void apply(final Location target, final boolean physics)
	{
		final Block block = target.clone().add(x, y, z).getBlock();
		block.setTypeIdAndData(material, data, physics);
	}
}

@@ -61,16 +61,44 @@
 cation;%0A
+import org.bukkit.Material;%0A
 import o
@@ -116,24 +116,24 @@
 lock.Block;%0A
-
 %0Aimport de.s
@@ -235,11 +235,16 @@
 ted 
-int
+Material
  mat
@@ -421,18 +421,16 @@
 .getType
-Id
 ();%0A%09%09da
@@ -616,16 +616,16 @@
 lock();%0A
-
 %09%09block.
@@ -649,16 +649,24 @@
 material
+.getId()
 , data, 

Store Material instead of materialid