public DropEntity(Material t, Location loc)
 {
     HEIGHT = Settings.BLOCK_SIZE / 2;
     WIDTH = Settings.BLOCK_SIZE / 2;
     spawn(loc);
     type = t;
 }
 public DropEntity(Material t, double x, double y)
 {
     HEIGHT = Settings.BLOCK_SIZE / 2;
     WIDTH = Settings.BLOCK_SIZE / 2;
     type = t;
     Location location = new Location(x, y);
     spawn(location);
 }
        public DropEntity(Material t, double x, double y, World world)
        {
            location = new Location(x, y, world.getName());
            type = t; HEIGHT = Settings.BLOCK_SIZE / 2;
            WIDTH = Settings.BLOCK_SIZE / 2;

            spawn(location);
        }
 public MaterialStack(Material t, int am)
 {
     this.type = t;
     this.amount = am;
 }
Example #5
0
 public void setType(Material dataToSet)
 {
     this.data = dataToSet;
     this.health = dataToSet.getDurability();
 }
Example #6
0
 public Block(Material d)
 {
     this.data = d;
     this.health = data.getDurability();
 }